2.7 Transfer a domain

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. .

Parameters
domainFullName
Type: String
Full name of the domain.

authInfo
Type: String
AuthInfo code of domain.

dnsEntyties
Type: DnsHostEntity
Array of DnsHostEntity object with hostname and ip address of each dns entry.

autoRenew
Type: bool
Set the auto-reniew option .

domainPrivacy
Type: bool
Set the domainPrivacy option .

registrant
Type: DomainRegistrantEntity
Object which contains all data about of Registrant (First name, Last name, address, city, state, country, email, fax, phone, organization name) .


    /// 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();
    }
    
/// WsDomains.SetTransferCloudDomain Method (JAVA)
public static String SetTransferCloudDomain(IWsDomains client,
        String authInfo, DomainRegistrantEntity registrant, String fullDomainName,
        boolean autoReniew, boolean domainPrivacy, ArrayOfDnsHostEntity dnsEntities) 
    {
    //specify the account login details 
    ((BindingProvider) client).getRequestContext()
            .put(BindingProvider.USERNAME_PROPERTY, "ARU-0000");
    ((BindingProvider) client).getRequestContext()
            .put(BindingProvider.PASSWORD_PROPERTY, "0123456789");

    StringBuilder stringBuilder = new StringBuilder();

    try {
        // create the object request 
        SetTransferCloudDomainRequest request = 
            new SetTransferCloudDomainRequest();
        request.setBody(new TransferringDomainDataEntity());
        request.getBody().setAuthInfo(authInfo);

        request.getBody().setDomainName(new InputDomainNameEntity());
        request.getBody().getDomainName().setDomainFullName(fullDomainName);

        request.getBody().setDomainData(new DomainDataEntity());
        request.getBody().getDomainData().setAutoRenew(autoReniew);
        request.getBody().getDomainData().setDomainPrivacy(domainPrivacy);
        request.getBody().getDomainData().setRegistrant(registrant);
        request.getBody().getDomainData().setAuthoritativeDns(dnsEntities);

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

        //if the call is Success print history values
        if (result.isSuccess()) {
            // get Value returned from server
            stringBuilder.append(" Operation successfully. Result Code : ");
            stringBuilder.append(result.getResultCode());
        } else {
            throw new Exception(result.getResultMessage());
        }
    } catch (Exception ex) {
        //show error
        System.out.println(ex);
    }

    return stringBuilder.toString();
}
Version
API: v2.8 URL:https://api.services.cloud.it/wsDomains/v2.8/WsDomains.svc?wsdl
See also