Click or drag to resize

IWsDomainsSetTransferCloudDomain Method

This method can be used to make a domain name transfer Request. Contact data and authoritative nameservers must be specified. Method call can be performed either for a request from an external registrant or for a domain owned by another Cloud user.

Namespace:  Aruba.Cloud.Domains.WsDomains
Assembly:  Aruba.Cloud.Domains.WsDomains (in Aruba.Cloud.Domains.WsDomains.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetTransferCloudDomain(
	SetTransferCloudDomainRequest request
)

Parameters

request
Type: Aruba.Cloud.Domains.Common.Entities.WcfSetTransferCloudDomainRequest

Return Value

Type: WsResult
Examples
By using the Aruba WsDomains method SetTransferCloudDomain is possible to make a domain name transfer Request. Contact data and authoritative nameservers must be specified. Method call can be performed either for a request from an external registrant or for a domain owned by another Cloud user.
/// WsDomains.SetTransferCloudDomain Method (c# .NET)
public static string SetTransferCloudDomain(WsDomainsClient client,
    String authInfo, DomainRegistrantEntity registrant, String fullDomainName,
    bool autoReniew, bool domainPrivacy, DnsHostEntity[] dnsEntities)
{
    //specify the account login details 
    client.ClientCredentials.UserName.UserName = "ARU-0000";
    client.ClientCredentials.UserName.Password = "0123456789";

    StringBuilder stringBuilder = new StringBuilder();

    try
    {
        // create the object request 
        SetTransferCloudDomainRequest request = 
            new SetTransferCloudDomainRequest();

        request.Body = new TransferringDomainDataEntity();
        request.Body.AuthInfo = authInfo;

        request.Body.DomainName = new InputDomainNameEntity();
        request.Body.DomainName.DomainFullName = fullDomainName;

        request.Body.DomainData = new DomainDataEntity();
        request.Body.DomainData.AutoRenew = autoReniew;
        request.Body.DomainData.DomainPrivacy = domainPrivacy;
        request.Body.DomainData.Registrant = registrant;
        request.Body.DomainData.AuthoritativeDns = dnsEntities;

        // call method SetTransferCloudDomain 
        // obtaining a WsResult item
        WsResult result = client.SetTransferCloudDomain(request);

        //if the call is Success print history values
        if (result.Success)
        {
            // get Value returned from server
            stringBuilder.Append(" Operation successfully. Result Code:");
            stringBuilder.Append(result.ResultCode);
        }
        else
        {
            throw new ApplicationException(result.ResultMessage);
        }
    }
    catch (Exception ex)
    {
        // re-run the error
        throw new ApplicationException(ex.Message);
    }

    return stringBuilder.ToString();
}
See Also