Ascio Web Service v3
Java Axis CreateOrder - OwnerChange
Replaces the registrant with a new handle. There are 2 ways to submit the new Registrant: 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 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
ResultCode | Message | Value |
---|---|---|
200 | Order validated | |
200 | Order received | |
400 | Order not validated | Messages |
401 | Authorization failed | |
405 | Access denied |
CreateOrder Request
Property | Type |
---|---|
request |
CreateOrderResponse
Property | Description |
---|---|
CreateOrderResult | |
OrderInfo | |
ResultCode | Example: 1 |
ResultMessage | |
Errors |
Used in Classes
Property | Value |
OrderType | OwnerChange |
---|---|
request | DomainOrderRequest |
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();
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.