Ascio Web Service v2
Java Axis CreateOrder - Change_Locks
Changes locks:
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 | Change_Locks |
---|
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 Change_LocksExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Domain domain = new Domain();
domain.setDomainName(env.getProperties().getProperty("DomainName"));
domain.setTransferLock("Unlock");
domain.setDeleteLock("Unlock");
domain.setUpdateLock("Unlock");
If the Transerlock is locked, the domain cannot be transferred. The Values are "Lock" and "Unlock". To unlock a domain, you must send a Change_Locks order, and set "Unlock"If the DeleteLock is locked, the domain cannot be deleted. The Values are "Lock" and "Unlock". To unlock a domain, you must send a Change_Locks order, and set "Unlock"If the UpdateLock is locked, the domain cannot be updated. The values are "Lock" and "Unlock". To unlock a domain, you must send a Change_Locks order, and set "Unlock"
Order order = new Order();
order.setType(OrderType.Change_Locks);
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 Change_LocksExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
Domain domain = new Domain();
domain.setDomainName(env.getProperties().getProperty("DomainName"));
domain.setTransferLock("Unlock");
domain.setDeleteLock("Unlock");
domain.setUpdateLock("Unlock");
Order order = new Order();
order.setType(OrderType.Change_Locks);
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.