C# CreateOrder - Register_Domain

Registers a domain. Please look at the TLD-Kit for special rules.

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

C# example

AscioServices services = new AscioServices();


registrant =  new Registrant();
registrant.Name = "John Doe";
registrant.Address1 = "Address1Test";
registrant.City = "CityTest";
registrant.PostalCode = "888349";
registrant.CountryCode = "DK";
registrant.Email = env.getEmail();
registrant.Phone = "+45.123456789";

adminContact =  new Contact();
adminContact.FirstName = "John";
adminContact.LastName = "Doe";
adminContact.Address1 = "Address1Test";
adminContact.PostalCode = "888349";
adminContact.City = "CityTest";
adminContact.CountryCode = "DK";
adminContact.Email = env.getEmail();
adminContact.Phone = "+45.123456789";

techContact =  new Contact();
techContact.FirstName = "John";
techContact.LastName = "Doe";
techContact.Address1 = "Address1Test";
techContact.PostalCode = "888349";
techContact.City = "CityTest";
techContact.CountryCode = "DK";
techContact.Email = env.getEmail();
techContact.Phone = "+45.123456789";

billingContact =  new Contact();
billingContact.FirstName = "John";
billingContact.LastName = "Doe";
billingContact.Address1 = "Address1Test";
billingContact.PostalCode = "888349";
billingContact.City = "CityTest";
billingContact.CountryCode = "DK";
billingContact.Email = env.getEmail();
billingContact.Phone = "+45.123456789";

nameServer1 =  new NameServer();
nameServer1.HostName = "ns1.ascio.com";

nameServer2 =  new NameServer();
nameServer2.HostName = "ns2.ascio.com";

nameServers =  new NameServers();
nameServers.NameServer1 = nameServer1;
nameServers.NameServer2 = nameServer2;

domain =  new Domain();
domain.DomainName = "ascio-test-domain".microtime().".com"
domain.Registrant = registrant;
domain.AdminContact = adminContact;
domain.TechContact = techContact;
domain.BillingContact = billingContact;
domain.NameServers = nameServers;

order =  new Order();
order.Type = OrderType::Register_Domain;
order.Domain = domain;
Response response = services.CreateOrder("mySessionId", ref order);
if (response.ResultCode == 200) {
	Console.WriteLine("My new orderId is : " + order.OrderId);
} else {
	if (response.Values != null) {
		Console.WriteLine(String.Join(",", response.Values));
	}
}
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)