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:

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

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

CreateOrder Request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
order

CreateOrderResponse

Property
CreateOrderResult
order
PropertyValue
OrderTypeContact_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.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();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.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.