Ascio Web Service v2
Java Axis CreateRegistrant
Response CreateRegistrant(string sessionId,Registrant registrant)
Response codes
ResultCode | Message | Value |
---|---|---|
200 | OK | |
401 | Authorization failed | |
501 | Syntax error in parameters or arguments | |
506 | Required attribute missing in request |
CreateRegistrant Request
Property | Description |
---|---|
sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
registrant |
CreateRegistrantResponse
Property |
---|
CreateRegistrantResult |
registrant |
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 CreateRegistrantExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Registrant registrant = new Registrant();
registrant.setName("ascio-is-great.com");
registrant.setOrgName("Ascio");
registrant.setAddress1("Address1Test");
registrant.setAddress2("Address2Test");
registrant.setCity("CityTest");
registrant.setState("StateTest");
registrant.setPostalCode("888349");
registrant.setCountryCode("DK");
registrant.setEmail("administrator@ascio-test-domain.com");
registrant.setPhone("+45.123456789");
registrant.setFax("+45.987654321");
registrant.setRegistrantType("C1");
registrant.setVatNumber("VatNumberTest");
registrant.setNexusCategory("NexusCategoryTest");
registrant.setRegistrantNumber("abc123445");
registrant.setDetails("DetailsTest");
Please enter firstname [space] lastname, or lastname, firstname as value. The name is part of social data. You need an owner-chage to change the name. The Name is required for every Registrant/Contact. (In case no handle is used)The OrgName is part of social data. You need an owner-chage to change the OrgName.The Address1 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 PostalCode 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 number must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.).Fax number must be in E164a format, eg. +45.123456789 (no spaces, hyphens, etc.)Some TLDs need a Registrant Type. In most cases this is used to specify which type of RegistrantNumber is used (e.G. VAT, Passboard ID)An ID of the Registrant. The RegistrantType may describe which type of ID is used.
try {
/**inputs holders*/
RegistrantHolder registrantHolder = new RegistrantHolder(registrant);
Response response = env.getClient().createRegistrant(env.getSessionId(), registrantHolder);
System.out.println("CreateRegistrant ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateRegistrant Message\t: " + response.getMessage());
System.out.println("Created Handle\t: " + registrantHolder.value.getHandle());
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
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 CreateRegistrantExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Registrant registrant = new Registrant();
registrant.setName("ascio-is-great.com");
registrant.setOrgName("Ascio");
registrant.setAddress1("Address1Test");
registrant.setAddress2("Address2Test");
registrant.setCity("CityTest");
registrant.setState("StateTest");
registrant.setPostalCode("888349");
registrant.setCountryCode("DK");
registrant.setEmail("administrator@ascio-test-domain.com");
registrant.setPhone("+45.123456789");
registrant.setFax("+45.987654321");
registrant.setRegistrantType("C1");
registrant.setVatNumber("VatNumberTest");
registrant.setNexusCategory("NexusCategoryTest");
registrant.setRegistrantNumber("abc123445");
registrant.setDetails("DetailsTest");
try {
/**inputs holders*/
RegistrantHolder registrantHolder = new RegistrantHolder(registrant);
Response response = env.getClient().createRegistrant(env.getSessionId(), registrantHolder);
System.out.println("CreateRegistrant ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateRegistrant Message\t: " + response.getMessage());
System.out.println("Created Handle\t: " + registrantHolder.value.getHandle());
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
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.