Ascio Web Service v3
Java Axis CreateOrder
The Domain Monitoring scans zones for keyword variations. The keywords are scanned in a predefined NotificationFrequency: There a different scanning configuration that can be set with the Tier parameter: Please enter 1 or 2 for the Tier
Register
CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
501 | Syntax error in parameters or arguments | |
506 | Required attribute missing in request |
CreateOrder Request
Property | Type |
---|---|
request |
CreateOrderResponse
Property | Description |
---|---|
CreateOrderResult | |
OrderInfo | |
ResultCode | Example: 1 |
ResultMessage | |
Errors |
Used in Classes
Property | Value |
OrderType | Register |
---|---|
request | NameWatchOrderRequest |
Java Axis example
package ascio.v3.examples;
import com.ascio.www._2013._02.*;
import ascio.lib.*;
public class CreateOrderExample {
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 resellerExtensions[] = new ExtensionsKeyValue[]{keyValue};
resellerExtensions[0].setKey("Title");
resellerExtensions[0].setValue("Mrs.");
Contact reseller = new Contact();
reseller.setFirstName("John");
reseller.setLastName("Doe");
reseller.setOrgName("Ascio");
reseller.setAddress1("Address1Test");
reseller.setAddress2("Address2Test");
reseller.setCity("CityTest");
reseller.setState("StateTest");
reseller.setPostalCode("888349");
reseller.setCountryCode("DK");
reseller.setPhone("+45.123456789");
reseller.setFax("+45.987654321");
reseller.setEmail(config.getEmail());
reseller.setType("owner");
reseller.setDetails("DetailsTest");
reseller.setOrganisationNumber("OrganisationNumberTest");
reseller.setExtensions(resellerExtensions);
NameWatch nameWatch = new NameWatch();
nameWatch.setName("ascio-is-great.com");
nameWatch.setNotificationFrequency(NotificationFrequencyType.Daily);
nameWatch.setTier(1);
nameWatch.setEmailNotification1("EmailNotification1Test");
nameWatch.setEmailNotification2("EmailNotification2Test");
nameWatch.setEmailNotification3("EmailNotification3Test");
nameWatch.setEmailNotification4("EmailNotification4Test");
nameWatch.setEmailNotification5("EmailNotification5Test");
nameWatch.setOwner(owner);
nameWatch.setReseller(reseller);
nameWatch.setObjectComment("Example Object Comment");
NameWatchOrderRequest request = new NameWatchOrderRequest();
request.setType(OrderType.Register);
request.setPeriod(1);
request.setTransactionComment("TransactionCommentTest");
request.setNameWatch(nameWatch);
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 CreateOrderExample {
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 resellerExtensions[] = new ExtensionsKeyValue[]{keyValue};
resellerExtensions[0].setKey("Title");
resellerExtensions[0].setValue("Mrs.");
Contact reseller = new Contact();
reseller.setFirstName("John");
reseller.setLastName("Doe");
reseller.setOrgName("Ascio");
reseller.setAddress1("Address1Test");
reseller.setAddress2("Address2Test");
reseller.setCity("CityTest");
reseller.setState("StateTest");
reseller.setPostalCode("888349");
reseller.setCountryCode("DK");
reseller.setPhone("+45.123456789");
reseller.setFax("+45.987654321");
reseller.setEmail(config.getEmail());
reseller.setType("owner");
reseller.setDetails("DetailsTest");
reseller.setOrganisationNumber("OrganisationNumberTest");
reseller.setExtensions(resellerExtensions);
NameWatch nameWatch = new NameWatch();
nameWatch.setName("ascio-is-great.com");
nameWatch.setNotificationFrequency(NotificationFrequencyType.Daily);
nameWatch.setTier(1);
nameWatch.setEmailNotification1("EmailNotification1Test");
nameWatch.setEmailNotification2("EmailNotification2Test");
nameWatch.setEmailNotification3("EmailNotification3Test");
nameWatch.setEmailNotification4("EmailNotification4Test");
nameWatch.setEmailNotification5("EmailNotification5Test");
nameWatch.setOwner(owner);
nameWatch.setReseller(reseller);
nameWatch.setObjectComment("Example Object Comment");
NameWatchOrderRequest request = new NameWatchOrderRequest();
request.setType(OrderType.Register);
request.setPeriod(1);
request.setTransactionComment("TransactionCommentTest");
request.setNameWatch(nameWatch);
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.
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.