Ascio Web Service v2
Java Axis CreateOrder - Contact_Update
Replaces the contact with a new handle. There are 2 ways to submit the new Registrant: With the Contact Update, it is possible to change Tech Contact, Admistrative Contact and Billing Contact in one request.
Response CreateOrder(string sessionId,Order order)
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 | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
order |
CreateOrderResponse
Property |
---|
CreateOrderResult |
order |
Property | Value |
OrderType | Contact_Update |
---|
Java Axis example
package ascio.v2.examples;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
public class Contact_UpdateExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Contact adminContact = new Contact();
adminContact.setStatus("StatusTest");
adminContact.setHandle("JD123");
adminContact.setFirstName("John");
adminContact.setLastName("Doe");
adminContact.setOrgName("Ascio");
adminContact.setAddress1("Address1Test");
adminContact.setAddress2("Address2Test");
adminContact.setPostalCode("888349");
adminContact.setCity("CityTest");
adminContact.setState("StateTest");
adminContact.setCountryCode("DK");
adminContact.setEmail(config.getEmail());
adminContact.setPhone("+45.123456789");
adminContact.setFax("+45.987654321");
adminContact.setType("owner");
adminContact.setDetails("DetailsTest");
adminContact.setOrganisationNumber("OrganisationNumberTest");
The Handle. Please don't use Handle and contact-data. The data won't be merged!All contacts have FirstName and LastName. This is different than Registrants.All contacts have FirstName and LastName. This is different than Registrants.The Address1 is required for every Registrant/Contact. (In case no handle is used)The PostalCode is required for every Registrant/Contact. (In case no handle is used).The City is required for every Registrant/Contact. (In case no handle is used)The ISO 3166-1 code for the Country (DE,GB,DK,CH,SE,...). The CountryCode is required for every Registrant/Contact. (In case no handle is used)The Email is required for every Registrant/Contact. (In case no handle is used)Phone numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.).Fax numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.)
Contact techContact = new Contact();
techContact.setStatus("StatusTest");
techContact.setHandle("JD123");
techContact.setFirstName("John");
techContact.setLastName("Doe");
techContact.setOrgName("Ascio");
techContact.setAddress1("Address1Test");
techContact.setAddress2("Address2Test");
techContact.setPostalCode("888349");
techContact.setCity("CityTest");
techContact.setState("StateTest");
techContact.setCountryCode("DK");
techContact.setEmail(config.getEmail());
techContact.setPhone("+45.123456789");
techContact.setFax("+45.987654321");
techContact.setType("owner");
techContact.setDetails("DetailsTest");
techContact.setOrganisationNumber("OrganisationNumberTest");
The Handle. Please don't use Handle and contact-data. The data won't be merged!All contacts have FirstName and LastName. This is different than Registrants.All contacts have FirstName and LastName. This is different than Registrants.The Address1 is required for every Registrant/Contact. (In case no handle is used)The PostalCode is required for every Registrant/Contact. (In case no handle is used).The City is required for every Registrant/Contact. (In case no handle is used)The ISO 3166-1 code for the Country (DE,GB,DK,CH,SE,...). The CountryCode is required for every Registrant/Contact. (In case no handle is used)The Email is required for every Registrant/Contact. (In case no handle is used)Phone numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.).Fax numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.)
Contact billingContact = new Contact();
billingContact.setStatus("StatusTest");
billingContact.setHandle("JD123");
billingContact.setFirstName("John");
billingContact.setLastName("Doe");
billingContact.setOrgName("Ascio");
billingContact.setAddress1("Address1Test");
billingContact.setAddress2("Address2Test");
billingContact.setPostalCode("888349");
billingContact.setCity("CityTest");
billingContact.setState("StateTest");
billingContact.setCountryCode("DK");
billingContact.setEmail(config.getEmail());
billingContact.setPhone("+45.123456789");
billingContact.setFax("+45.987654321");
billingContact.setType("owner");
billingContact.setDetails("DetailsTest");
billingContact.setOrganisationNumber("OrganisationNumberTest");
The Handle. Please don't use Handle and contact-data. The data won't be merged!All contacts have FirstName and LastName. This is different than Registrants.All contacts have FirstName and LastName. This is different than Registrants.The Address1 is required for every Registrant/Contact. (In case no handle is used)The PostalCode is required for every Registrant/Contact. (In case no handle is used).The City is required for every Registrant/Contact. (In case no handle is used)The ISO 3166-1 code for the Country (DE,GB,DK,CH,SE,...). The CountryCode is required for every Registrant/Contact. (In case no handle is used)The Email is required for every Registrant/Contact. (In case no handle is used)Phone numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.).Fax numbers must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.)
Domain domain = new Domain();
domain.setDomainName(env.getProperties().getProperty("DomainName"));
domain.setAdminContact(adminContact);
domain.setTechContact(techContact);
domain.setBillingContact(billingContact);
Order order = new Order();
order.setType(OrderType.Contact_Update);
order.setAccountReference("AccountReferenceTest");
order.setTransactionComment("TransactionCommentTest");
order.setComments("RegistrarTag");
order.setOptions("OptionsTest");
order.setLocalPresence("off");
order.setDomain(domain);
Here partners can add their own data, like customer-id.Here partners can add their own comments, like customer-id.Referenced in the TLD-Kit as: 1cAscio offers many localpresences for countries with local-restrictions. Possible values are: LocalPresenceAdmin, LocalPresenceRegistrant,LocalPresenceAddresss Representative
try {
/**inputs holders*/
OrderHolder orderHolder = new OrderHolder(order);
Response response = env.getClient().createOrder(env.getSessionId(), orderHolder);
System.out.println("CreateOrder ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateOrder Message\t: " + response.getMessage());
System.out.println("Created OrderId\t\t: " + orderHolder.value.getOrderId());
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
env.repeatSync(orderHolder.value.getOrderId(), 10);
return response;
} catch (Exception e) {
System.out.print(e);
}
return new Response();package ascio.v2.examples;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
public class Contact_UpdateExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Contact adminContact = new Contact();
adminContact.setStatus("StatusTest");
adminContact.setHandle("JD123");
adminContact.setFirstName("John");
adminContact.setLastName("Doe");
adminContact.setOrgName("Ascio");
adminContact.setAddress1("Address1Test");
adminContact.setAddress2("Address2Test");
adminContact.setPostalCode("888349");
adminContact.setCity("CityTest");
adminContact.setState("StateTest");
adminContact.setCountryCode("DK");
adminContact.setEmail(config.getEmail());
adminContact.setPhone("+45.123456789");
adminContact.setFax("+45.987654321");
adminContact.setType("owner");
adminContact.setDetails("DetailsTest");
adminContact.setOrganisationNumber("OrganisationNumberTest");
Contact techContact = new Contact();
techContact.setStatus("StatusTest");
techContact.setHandle("JD123");
techContact.setFirstName("John");
techContact.setLastName("Doe");
techContact.setOrgName("Ascio");
techContact.setAddress1("Address1Test");
techContact.setAddress2("Address2Test");
techContact.setPostalCode("888349");
techContact.setCity("CityTest");
techContact.setState("StateTest");
techContact.setCountryCode("DK");
techContact.setEmail(config.getEmail());
techContact.setPhone("+45.123456789");
techContact.setFax("+45.987654321");
techContact.setType("owner");
techContact.setDetails("DetailsTest");
techContact.setOrganisationNumber("OrganisationNumberTest");
Contact billingContact = new Contact();
billingContact.setStatus("StatusTest");
billingContact.setHandle("JD123");
billingContact.setFirstName("John");
billingContact.setLastName("Doe");
billingContact.setOrgName("Ascio");
billingContact.setAddress1("Address1Test");
billingContact.setAddress2("Address2Test");
billingContact.setPostalCode("888349");
billingContact.setCity("CityTest");
billingContact.setState("StateTest");
billingContact.setCountryCode("DK");
billingContact.setEmail(config.getEmail());
billingContact.setPhone("+45.123456789");
billingContact.setFax("+45.987654321");
billingContact.setType("owner");
billingContact.setDetails("DetailsTest");
billingContact.setOrganisationNumber("OrganisationNumberTest");
Domain domain = new Domain();
domain.setDomainName(env.getProperties().getProperty("DomainName"));
domain.setAdminContact(adminContact);
domain.setTechContact(techContact);
domain.setBillingContact(billingContact);
Order order = new Order();
order.setType(OrderType.Contact_Update);
order.setAccountReference("AccountReferenceTest");
order.setTransactionComment("TransactionCommentTest");
order.setComments("RegistrarTag");
order.setOptions("OptionsTest");
order.setLocalPresence("off");
order.setDomain(domain);
try {
/**inputs holders*/
OrderHolder orderHolder = new OrderHolder(order);
Response response = env.getClient().createOrder(env.getSessionId(), orderHolder);
System.out.println("CreateOrder ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateOrder Message\t: " + response.getMessage());
System.out.println("Created OrderId\t\t: " + orderHolder.value.getOrderId());
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
env.repeatSync(orderHolder.value.getOrderId(), 10);
return response;
} catch (Exception e) {
System.out.print(e);
}
return new Response();
WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.