Ascio Web Service v2
C# CreateOrder - Nameserver_Update (DnsSec)
Replaces the DnsSec with a new handle. There are 2 ways to submit the new Nameserver: With the Nameserver Update, it is possible to change DnsSec.
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 | Nameserver_Update |
---|---|
Example | dnssec |
C# example
AscioServices services = new ServiceReference1.AscioServices();
Contact techContact = new Contact();
techContact.Status = "StatusTest";
techContact.Handle = "JD123";
techContact.FirstName = "John";
techContact.LastName = "Doe";
techContact.OrgName = "Ascio";
techContact.Address1 = "Address1Test";
techContact.Address2 = "Address2Test";
techContact.PostalCode = "888349";
techContact.City = "CityTest";
techContact.State = "StateTest";
techContact.CountryCode = "DK";
techContact.Email = email@email.com
techContact.Phone = "+45.123456789";
techContact.Fax = "+45.987654321";
techContact.Type = "owner";
techContact.Details = "DetailsTest";
techContact.OrganisationNumber = "OrganisationNumberTest";
NameServer nameServer1 = new NameServer();
nameServer1.HostName = "ns1.ascio.net";
nameServer1.IpAddress = "64.98.148.24";
nameServer1.Status = "StatusTest";
nameServer1.IpV6Address = "xxxx:xxxx:xxx:xxx:xxxx";
nameServer1.Details = "DetailsTest";
NameServer nameServer2 = new NameServer();
nameServer2.HostName = "ns2.ascio.net";
nameServer2.IpAddress = "216.40.47.100";
nameServer2.Status = "StatusTest";
nameServer2.IpV6Address = "xxxx:xxxx:xxx:xxx:xxxx";
nameServer2.Details = "DetailsTest";
NameServer nameServer3 = new NameServer();
nameServer3.HostName = "ns3.ascio.net";
nameServer3.IpAddress = "64.98.148.25";
nameServer3.Status = "StatusTest";
nameServer3.IpV6Address = "xxxx:xxxx:xxx:xxx:xxxx";
nameServer3.Details = "DetailsTest";
NameServer nameServer4 = new NameServer();
nameServer4.HostName = "ns4.ascio.net";
nameServer4.IpAddress = "216.40.47.101";
nameServer4.Status = "StatusTest";
nameServer4.IpV6Address = "xxxx:xxxx:xxx:xxx:xxxx";
nameServer4.Details = "DetailsTest";
NameServer nameServer5 = new NameServer();
nameServer5.HostName = "HostNameTest";
nameServer5.IpAddress = "IpAddressTest";
nameServer5.Status = "StatusTest";
nameServer5.IpV6Address = "IpV6AddressTest";
nameServer5.Details = "DetailsTest";
NameServer nameServer6 = new NameServer();
nameServer6.HostName = "HostNameTest";
nameServer6.IpAddress = "IpAddressTest";
nameServer6.Status = "StatusTest";
nameServer6.IpV6Address = "IpV6AddressTest";
nameServer6.Details = "DetailsTest";
NameServer nameServer7 = new NameServer();
nameServer7.HostName = "HostNameTest";
nameServer7.IpAddress = "IpAddressTest";
nameServer7.Status = "StatusTest";
nameServer7.IpV6Address = "IpV6AddressTest";
nameServer7.Details = "DetailsTest";
NameServer nameServer8 = new NameServer();
nameServer8.HostName = "HostNameTest";
nameServer8.IpAddress = "IpAddressTest";
nameServer8.Status = "StatusTest";
nameServer8.IpV6Address = "IpV6AddressTest";
nameServer8.Details = "DetailsTest";
NameServer nameServer9 = new NameServer();
nameServer9.HostName = "HostNameTest";
nameServer9.IpAddress = "IpAddressTest";
nameServer9.Status = "StatusTest";
nameServer9.IpV6Address = "IpV6AddressTest";
nameServer9.Details = "DetailsTest";
NameServer nameServer10 = new NameServer();
nameServer10.HostName = "HostNameTest";
nameServer10.IpAddress = "IpAddressTest";
nameServer10.Status = "StatusTest";
nameServer10.IpV6Address = "IpV6AddressTest";
nameServer10.Details = "DetailsTest";
NameServer nameServer11 = new NameServer();
nameServer11.HostName = "HostNameTest";
nameServer11.IpAddress = "IpAddressTest";
nameServer11.Status = "StatusTest";
nameServer11.IpV6Address = "IpV6AddressTest";
nameServer11.Details = "DetailsTest";
NameServer nameServer12 = new NameServer();
nameServer12.HostName = "HostNameTest";
nameServer12.IpAddress = "IpAddressTest";
nameServer12.Status = "StatusTest";
nameServer12.IpV6Address = "IpV6AddressTest";
nameServer12.Details = "DetailsTest";
NameServers nameServers = new NameServers();
nameServers.NameServer1 = nameServer1;
nameServers.NameServer2 = nameServer2;
nameServers.NameServer3 = nameServer3;
nameServers.NameServer4 = nameServer4;
nameServers.NameServer5 = nameServer5;
nameServers.NameServer6 = nameServer6;
nameServers.NameServer7 = nameServer7;
nameServers.NameServer8 = nameServer8;
nameServers.NameServer9 = nameServer9;
nameServers.NameServer10 = nameServer10;
nameServers.NameServer11 = nameServer11;
nameServers.NameServer12 = nameServer12;
DnsSecKey dnsSecKey1 = new DnsSecKey();
dnsSecKey1.Handle = "JD123";
DnsSecKey dnsSecKey2 = new DnsSecKey();
dnsSecKey2.Handle = "JD123";
DnsSecKey dnsSecKey3 = new DnsSecKey();
dnsSecKey3.Handle = "JD123";
DnsSecKey dnsSecKey4 = new DnsSecKey();
dnsSecKey4.Handle = "JD123";
DnsSecKey dnsSecKey5 = new DnsSecKey();
dnsSecKey5.Handle = "JD123";
DnsSecKeys dnsSecKeys = new DnsSecKeys();
dnsSecKeys.DnsSecKey1 = dnsSecKey1;
dnsSecKeys.DnsSecKey2 = dnsSecKey2;
dnsSecKeys.DnsSecKey3 = dnsSecKey3;
dnsSecKeys.DnsSecKey4 = dnsSecKey4;
dnsSecKeys.DnsSecKey5 = dnsSecKey5;
Domain domain = new Domain();
domain.DomainName = domaintest.com
domain.TechContact = techContact;
domain.NameServers = nameServers;
domain.DnsSecKeys = dnsSecKeys;
Order order = new Order();
order.Type = OrderType.Nameserver_Update;
order.Domain = domain;
Response response = services.CreateOrder("mySessionId", ref request);
if (response.ResultCode == 200) {
Console.WriteLine("My new orderId is : " + request.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)
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.