Ascio Web Service v3

C# CreateOrder - ChangeLocks

Changes locks:

  • TransferLock: The domain can't be transferred.
  • DeleteLock: The domain can't be deleted/expired.
  • UpdateLock: Nothing can be changed.

CreateOrderResponse CreateOrder(SecurityHeaderDetails securityHeader,CreateOrderRequest request)

Response codes

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

CreateOrder Request

PropertyType
request

CreateOrderResponse

PropertyDescription
CreateOrderResult
OrderInfo
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PropertyValue
OrderTypeChangeLocks
requestDomainOrderRequest

C# example

AscioServices services = new ServiceReference1.AscioServiceClient();
SecurityHeaderDetails securityHeader = new SecurityHeaderDetails();
securityHeader.Account = "username";
securityHeader.Password = "password";

Domain domain =  new Domain();
domain.Name = "ascio-is-great.com";
domain.TransferLock = "Unlock";
domain.DeleteLock = "Unlock";
domain.UpdateLock = "Unlock";

DomainOrderRequest request =  new DomainOrderRequest();
request.Type = OrderType.ChangeLocks;
request.TypeSpecified = true;
request.TransactionComment = "TransactionCommentTest";
request.TransactionCommentSpecified = true;
request.Domain = domain;
CreateOrderResponse response = services.CreateOrder(securityHeader, request);
if (response.ResultCode == 200) {
	Console.WriteLine("My new orderId is : " + request.OrderInfo.OrderId);
} else {
	if (response.Errors != null) {
		Console.WriteLine(String.Join(",", response.Errors));
	}
	Console.WriteLine(response.ResultMessage)
}
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.