Ascio Web Service v3

Java Axis CreateOrder - OwnerChange

Replaces the registrant with a new handle. There are 2 ways to submit the new Registrant:

  • Submit a Handle-ID. The handle linked to the domain will be replaced
  • Submit new data. A new handle will be created. The handle linked to the domain will be replaced

With the OwnerChange, it is possible to change Registrant and Admistrative Contact in one request.

The rules for the owner-change depend on the registry. Please look at the TLD-Kit for details.

An OwnerChange is needed when materialized data is changed

  • Name
  • Company
  • Company Numer
  • E-Mail (IRTP)

If no materialized data is changed, a Registrant Details Update can be used instead. This is easier than an Owner change.

CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)

Response codes

ResultCodeMessageValue
200Order validated
200Order received
400Order not validatedMessages
401Authorization failed
405Access denied

CreateOrder Request

PropertyType
request

CreateOrderResponse

PropertyDescription
CreateOrderResult
OrderInfo
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PropertyValue
OrderTypeOwnerChange
requestDomainOrderRequest

Java Axis example

package ascio.v3.examples;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class OwnerChangeExample {
	public static CreateOrderResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

		KeyValue keyValue =  new KeyValue();
		keyValue.setKey("Title");
		keyValue.setValue("Mr.");

		ExtensionsKeyValue ownerExtensions[] =  new ExtensionsKeyValue[]{keyValue};

		Registrant owner =  new Registrant();
		owner.setFirstName("John");
		owner.setLastName("Doe");
		owner.setOrgName("Ascio");
		owner.setAddress1("Address1Test");
		owner.setAddress2("Address2Test");
		owner.setCity("CityTest");
		owner.setState("StateTest");
		owner.setPostalCode("888349");
		owner.setCountryCode("DK");
		owner.setPhone("+45.123456789");
		owner.setFax("+45.987654321");
		owner.setEmail(config.getEmail());
		owner.setType("owner");
		owner.setDetails("DetailsTest");
		owner.setOrganisationNumber("OrganisationNumberTest");
		owner.setExtensions(ownerExtensions);
		owner.setVatNumber("VatNumberTest");
		owner.setNexusCategory("NexusCategoryTest");

                            
                                
                                    
                                    
                                
                            
                        
		KeyValue keyValue =  new KeyValue();
		keyValue.setKey("Title");
		keyValue.setValue("Mr.");

		ExtensionsKeyValue adminExtensions[] =  new ExtensionsKeyValue[]{keyValue};
		adminExtensions[0].setKey("Title");
		adminExtensions[0].setValue("Mrs.");

                            
                            
                        
		Contact admin =  new Contact();
		admin.setFirstName("John");
		admin.setLastName("Doe");
		admin.setOrgName("Ascio");
		admin.setAddress1("Address1Test");
		admin.setAddress2("Address2Test");
		admin.setCity("CityTest");
		admin.setState("StateTest");
		admin.setPostalCode("888349");
		admin.setCountryCode("DK");
		admin.setPhone("+45.123456789");
		admin.setFax("+45.987654321");
		admin.setEmail(config.getEmail());
		admin.setType("owner");
		admin.setDetails("DetailsTest");
		admin.setOrganisationNumber("OrganisationNumberTest");
		admin.setExtensions(adminExtensions);

                            
                                
                                    
                                    
                                
                            
                        
		Domain domain =  new Domain();
		domain.setName("ascio-is-great.com");
		domain.setOwner(owner);
		domain.setAdmin(admin);

		DomainOrderRequest request =  new DomainOrderRequest();
		request.setType(OrderType.OwnerChange);
		request.setTransactionComment("TransactionCommentTest");
		request.setDocumentation("DocumentationTest");
		request.setDomain(domain);

		try {
			CreateOrderResponse response = env.getClient().createOrder(request);			
			System.out.println("response\n");
			System.out.println("CreateOrder Code\t:" + response.getResultCode());
			System.out.println("CreateOrder Message\t: " + response.getResultMessage());

			System.out.println("Created OrderId	: "+response.getOrderInfo().getOrderId());
			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new CreateOrderResponse();package ascio.v3.examples;
import com.ascio.www._2013._02.*;
import ascio.lib.*;

public class OwnerChangeExample {
	public static CreateOrderResponse main() {
		AscioConfig config = new AscioConfig();
		V3 env = config.getTesting().getV3();

		KeyValue keyValue =  new KeyValue();
		keyValue.setKey("Title");
		keyValue.setValue("Mr.");

		ExtensionsKeyValue ownerExtensions[] =  new ExtensionsKeyValue[]{keyValue};

		Registrant owner =  new Registrant();
		owner.setFirstName("John");
		owner.setLastName("Doe");
		owner.setOrgName("Ascio");
		owner.setAddress1("Address1Test");
		owner.setAddress2("Address2Test");
		owner.setCity("CityTest");
		owner.setState("StateTest");
		owner.setPostalCode("888349");
		owner.setCountryCode("DK");
		owner.setPhone("+45.123456789");
		owner.setFax("+45.987654321");
		owner.setEmail(config.getEmail());
		owner.setType("owner");
		owner.setDetails("DetailsTest");
		owner.setOrganisationNumber("OrganisationNumberTest");
		owner.setExtensions(ownerExtensions);
		owner.setVatNumber("VatNumberTest");
		owner.setNexusCategory("NexusCategoryTest");

		KeyValue keyValue =  new KeyValue();
		keyValue.setKey("Title");
		keyValue.setValue("Mr.");

		ExtensionsKeyValue adminExtensions[] =  new ExtensionsKeyValue[]{keyValue};
		adminExtensions[0].setKey("Title");
		adminExtensions[0].setValue("Mrs.");

		Contact admin =  new Contact();
		admin.setFirstName("John");
		admin.setLastName("Doe");
		admin.setOrgName("Ascio");
		admin.setAddress1("Address1Test");
		admin.setAddress2("Address2Test");
		admin.setCity("CityTest");
		admin.setState("StateTest");
		admin.setPostalCode("888349");
		admin.setCountryCode("DK");
		admin.setPhone("+45.123456789");
		admin.setFax("+45.987654321");
		admin.setEmail(config.getEmail());
		admin.setType("owner");
		admin.setDetails("DetailsTest");
		admin.setOrganisationNumber("OrganisationNumberTest");
		admin.setExtensions(adminExtensions);

		Domain domain =  new Domain();
		domain.setName("ascio-is-great.com");
		domain.setOwner(owner);
		domain.setAdmin(admin);

		DomainOrderRequest request =  new DomainOrderRequest();
		request.setType(OrderType.OwnerChange);
		request.setTransactionComment("TransactionCommentTest");
		request.setDocumentation("DocumentationTest");
		request.setDomain(domain);

		try {
			CreateOrderResponse response = env.getClient().createOrder(request);			
			System.out.println("response\n");
			System.out.println("CreateOrder Code\t:" + response.getResultCode());
			System.out.println("CreateOrder Message\t: " + response.getResultMessage());

			System.out.println("Created OrderId	: "+response.getOrderInfo().getOrderId());
			if(response.getResultCode() > 200){
				for(String error : response.getErrors()) {
					System.out.print(error);
				}	
			}		
			return response;
		} catch (Exception e) {
			System.out.print(e);
		}
		return new CreateOrderResponse();
WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.