Ascio Web Service v2

Perl CreateOrder - Nameserver_Update

Replaces the nameserver with a new handle. There are 2 ways to submit the new Nameserver:

  • Submit a Handle-ID. The handle linked to the domain will be replaced
  • Submit new data. A new handle will be created. The handle linked to the domain will be replaced

With the Nameserver Update, it is possible to change Tech Contact, DnsSec and Nameservers in one request.

For .com, .net and some other TLDs glue records are needed. Please contact support for help.

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
PropertyValue
OrderTypeNameserver_Update

Perl example

use SOAP::Lite;
use Date::Format;
$proxy = "https://aws.demo.ascio.com/2012/01/01/AscioService.svc";
$namespace = "http://www.ascio.com/2007/01";
$soap = SOAP::Lite->on_action( sub { "http://www.ascio.com/2007/01/IOrderService/CreateOrder" } )->proxy($proxy);
$soap->autotype(0);
$method = SOAP::Data->name("CreateOrder")->attr({xmlns => $namespace});

#Contact
$techContact =  \SOAP::Data->value(
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('Handle','JD123'),
	SOAP::Data->name('FirstName','John'),
	SOAP::Data->name('LastName','Doe'),
	SOAP::Data->name('OrgName','Ascio'),
	SOAP::Data->name('Address1','Address1Test'),
	SOAP::Data->name('Address2','Address2Test'),
	SOAP::Data->name('PostalCode','888349'),
	SOAP::Data->name('City','CityTest'),
	SOAP::Data->name('State','StateTest'),
	SOAP::Data->name('CountryCode','DK'),
	SOAP::Data->name('Email','test@testemail.com'),
	SOAP::Data->name('Phone','+45.123456789'),
	SOAP::Data->name('Fax','+45.987654321'),
	SOAP::Data->name('Type','owner'),
	SOAP::Data->name('Details','DetailsTest'),
	SOAP::Data->name('OrganisationNumber','OrganisationNumberTest')
);

#NameServer
$nameServer1 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','ns1.ascio.net'),
	SOAP::Data->name('IpAddress','64.98.148.24'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','xxxx:xxxx:xxx:xxx:xxxx'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer2 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','ns2.ascio.net'),
	SOAP::Data->name('IpAddress','216.40.47.100'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','xxxx:xxxx:xxx:xxx:xxxx'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer3 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','ns3.ascio.net'),
	SOAP::Data->name('IpAddress','64.98.148.25'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','xxxx:xxxx:xxx:xxx:xxxx'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer4 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','ns4.ascio.net'),
	SOAP::Data->name('IpAddress','216.40.47.101'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','xxxx:xxxx:xxx:xxx:xxxx'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer5 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer6 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer7 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer8 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer9 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer10 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer11 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServer
$nameServer12 =  \SOAP::Data->value(
	SOAP::Data->name('HostName','HostNameTest'),
	SOAP::Data->name('IpAddress','IpAddressTest'),
	SOAP::Data->name('Status','StatusTest'),
	SOAP::Data->name('IpV6Address','IpV6AddressTest'),
	SOAP::Data->name('Details','DetailsTest')
);

#NameServers
$nameServers =  \SOAP::Data->value(
	SOAP::Data->name('NameServer1',$nameServer1),
	SOAP::Data->name('NameServer2',$nameServer2),
	SOAP::Data->name('NameServer3',$nameServer3),
	SOAP::Data->name('NameServer4',$nameServer4),
	SOAP::Data->name('NameServer5',$nameServer5),
	SOAP::Data->name('NameServer6',$nameServer6),
	SOAP::Data->name('NameServer7',$nameServer7),
	SOAP::Data->name('NameServer8',$nameServer8),
	SOAP::Data->name('NameServer9',$nameServer9),
	SOAP::Data->name('NameServer10',$nameServer10),
	SOAP::Data->name('NameServer11',$nameServer11),
	SOAP::Data->name('NameServer12',$nameServer12)
);

#DnsSecKey
$dnsSecKey1 =  \SOAP::Data->value(
	SOAP::Data->name('Handle','JD123')
);

#DnsSecKey
$dnsSecKey2 =  \SOAP::Data->value(
	SOAP::Data->name('Handle','JD123')
);

#DnsSecKey
$dnsSecKey3 =  \SOAP::Data->value(
	SOAP::Data->name('Handle','JD123')
);

#DnsSecKey
$dnsSecKey4 =  \SOAP::Data->value(
	SOAP::Data->name('Handle','JD123')
);

#DnsSecKey
$dnsSecKey5 =  \SOAP::Data->value(
	SOAP::Data->name('Handle','JD123')
);

#DnsSecKeys
$dnsSecKeys =  \SOAP::Data->value(
	SOAP::Data->name('DnsSecKey1',$dnsSecKey1),
	SOAP::Data->name('DnsSecKey2',$dnsSecKey2),
	SOAP::Data->name('DnsSecKey3',$dnsSecKey3),
	SOAP::Data->name('DnsSecKey4',$dnsSecKey4),
	SOAP::Data->name('DnsSecKey5',$dnsSecKey5)
);

#Domain
$domain =  \SOAP::Data->value(
	SOAP::Data->name('DomainName','testdomain123.com'),
	SOAP::Data->name('TechContact',$techContact),
	SOAP::Data->name('NameServers',$nameServers),
	SOAP::Data->name('DnsSecKeys',$dnsSecKeys)
);

#Order
$order =  \SOAP::Data->value(
	SOAP::Data->name('Type','Nameserver_Update'),
	SOAP::Data->name('Domain',$domain)
);
@query = (
	SOAP::Data->name("sessionId" => $sessionId),
	SOAP::Data->name("order" => $order)
);
$result = $soap->call($method => @query);
unless ($result->fault) {
	$response = $result->valueof("//CreateOrderResponse/CreateOrderResult");
	print "ResultCode : $response->{'ResultCode'}\r\n";
	print "Message : $response->{'ResultMessage'}\r\n";
	print "Values: ", join(", ", $result->valueof("//CreateOrderResponse/CreateOrderResult/Errors/[>0]")), "\n";
	if ($response->{"ResultCode"} == 200) {
		$order = $result->valueof("//CreateOrderResponse/order");
		print "OrderId : $order->{'OrderId'}\r\n";
	}
}
else {
	print join ", ",
	$result->faultcode,
	$result->faultstring,
	$result->faultdetail;
}
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.