Ascio Web Service v2

NodeJS ValidateOrder

Submitting an order. The Order ID is returned in the order object passed by reference.

Response ValidateOrder(string sessionId,Order order)

Response codes

ResultCodeMessageValue
200OK
400Order not validatedMessages
401Authorization failed
405Access denied
554Transaction failed

ValidateOrder Request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
order

ValidateOrderResponse

Property
ValidateOrderResult

NodeJS example

var soap = require("soap");

var validateOrderExample = function(callback) {

	//Registrant
	registrant =  {};
	registrant.Name="ascio-is-great.com";
	registrant.OrgName="Ascio";
	registrant.Address1="Address1Test";
	registrant.Address2="Address2Test";
	registrant.City="CityTest";
	registrant.State="StateTest";
	registrant.PostalCode="888349";
	registrant.CountryCode="DK";
	registrant.Email="administrator@ascio-test-domain.com";
	registrant.Phone="+45.123456789";
	registrant.Fax="+45.987654321";
	registrant.RegistrantType="C1";
	registrant.VatNumber="VatNumberTest";
	registrant.NexusCategory="NexusCategoryTest";
	registrant.RegistrantNumber="abc123445";
	registrant.Details="DetailsTest";

	//Contact
	adminContact =  {};
	adminContact.Status="StatusTest";
	adminContact.Handle="JD123";
	adminContact.FirstName="John";
	adminContact.LastName="Doe";
	adminContact.OrgName="Ascio";
	adminContact.Address1="Address1Test";
	adminContact.Address2="Address2Test";
	adminContact.PostalCode="888349";
	adminContact.City="CityTest";
	adminContact.State="StateTest";
	adminContact.CountryCode="DK";
	adminContact.Email="administrator@ascio-test-domain.com";
	adminContact.Phone="+45.123456789";
	adminContact.Fax="+45.987654321";
	adminContact.Type="owner";
	adminContact.Details="DetailsTest";
	adminContact.OrganisationNumber="OrganisationNumberTest";

	//Contact
	techContact =  {};
	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="administrator@ascio-test-domain.com";
	techContact.Phone="+45.123456789";
	techContact.Fax="+45.987654321";
	techContact.Type="owner";
	techContact.Details="DetailsTest";
	techContact.OrganisationNumber="OrganisationNumberTest";

	//Contact
	billingContact =  {};
	billingContact.Status="StatusTest";
	billingContact.Handle="JD123";
	billingContact.FirstName="John";
	billingContact.LastName="Doe";
	billingContact.OrgName="Ascio";
	billingContact.Address1="Address1Test";
	billingContact.Address2="Address2Test";
	billingContact.PostalCode="888349";
	billingContact.City="CityTest";
	billingContact.State="StateTest";
	billingContact.CountryCode="DK";
	billingContact.Email="administrator@ascio-test-domain.com";
	billingContact.Phone="+45.123456789";
	billingContact.Fax="+45.987654321";
	billingContact.Type="owner";
	billingContact.Details="DetailsTest";
	billingContact.OrganisationNumber="OrganisationNumberTest";

	//Contact
	resellerContact =  {};
	resellerContact.Status="StatusTest";
	resellerContact.Handle="JD123";
	resellerContact.FirstName="John";
	resellerContact.LastName="Doe";
	resellerContact.OrgName="Ascio";
	resellerContact.Address1="Address1Test";
	resellerContact.Address2="Address2Test";
	resellerContact.PostalCode="888349";
	resellerContact.City="CityTest";
	resellerContact.State="StateTest";
	resellerContact.CountryCode="DK";
	resellerContact.Email="administrator@ascio-test-domain.com";
	resellerContact.Phone="+45.123456789";
	resellerContact.Fax="+45.987654321";
	resellerContact.Type="owner";
	resellerContact.Details="DetailsTest";
	resellerContact.OrganisationNumber="OrganisationNumberTest";

	//NameServer
	nameServer1 =  {};
	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 =  {};
	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 =  {};
	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 =  {};
	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 =  {};
	nameServer5.HostName="HostNameTest";
	nameServer5.IpAddress="IpAddressTest";
	nameServer5.Status="StatusTest";
	nameServer5.IpV6Address="IpV6AddressTest";
	nameServer5.Details="DetailsTest";

	//NameServer
	nameServer6 =  {};
	nameServer6.HostName="HostNameTest";
	nameServer6.IpAddress="IpAddressTest";
	nameServer6.Status="StatusTest";
	nameServer6.IpV6Address="IpV6AddressTest";
	nameServer6.Details="DetailsTest";

	//NameServer
	nameServer7 =  {};
	nameServer7.HostName="HostNameTest";
	nameServer7.IpAddress="IpAddressTest";
	nameServer7.Status="StatusTest";
	nameServer7.IpV6Address="IpV6AddressTest";
	nameServer7.Details="DetailsTest";

	//NameServer
	nameServer8 =  {};
	nameServer8.HostName="HostNameTest";
	nameServer8.IpAddress="IpAddressTest";
	nameServer8.Status="StatusTest";
	nameServer8.IpV6Address="IpV6AddressTest";
	nameServer8.Details="DetailsTest";

	//NameServer
	nameServer9 =  {};
	nameServer9.HostName="HostNameTest";
	nameServer9.IpAddress="IpAddressTest";
	nameServer9.Status="StatusTest";
	nameServer9.IpV6Address="IpV6AddressTest";
	nameServer9.Details="DetailsTest";

	//NameServer
	nameServer10 =  {};
	nameServer10.HostName="HostNameTest";
	nameServer10.IpAddress="IpAddressTest";
	nameServer10.Status="StatusTest";
	nameServer10.IpV6Address="IpV6AddressTest";
	nameServer10.Details="DetailsTest";

	//NameServer
	nameServer11 =  {};
	nameServer11.HostName="HostNameTest";
	nameServer11.IpAddress="IpAddressTest";
	nameServer11.Status="StatusTest";
	nameServer11.IpV6Address="IpV6AddressTest";
	nameServer11.Details="DetailsTest";

	//NameServer
	nameServer12 =  {};
	nameServer12.HostName="HostNameTest";
	nameServer12.IpAddress="IpAddressTest";
	nameServer12.Status="StatusTest";
	nameServer12.IpV6Address="IpV6AddressTest";
	nameServer12.Details="DetailsTest";

	//NameServers
	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;

	//TradeMark
	trademark =  {};
	trademark.Name="ascio-is-great.com";
	trademark.Country="DK";
	trademark.Date="2026-11-18T18:57:41.854Z";
	trademark.Number="NumberTest";
	trademark.Type="owner";
	trademark.Contact="ContactTest";
	trademark.ContactLanguage="ContactLanguageTest";
	trademark.DocumentationLanguage="DocumentationLanguageTest";
	trademark.SecondContact="SecondContactTest";
	trademark.ThirdContact="ThirdContactTest";
	trademark.RegDate="2026-11-18T18:57:41.854Z";

	//DnsSecKey
	dnsSecKey1 =  {};
	dnsSecKey1.Handle="JD123";

	//DnsSecKey
	dnsSecKey2 =  {};
	dnsSecKey2.Handle="JD123";

	//DnsSecKey
	dnsSecKey3 =  {};
	dnsSecKey3.Handle="JD123";

	//DnsSecKey
	dnsSecKey4 =  {};
	dnsSecKey4.Handle="JD123";

	//DnsSecKey
	dnsSecKey5 =  {};
	dnsSecKey5.Handle="JD123";

	//DnsSecKeys
	dnsSecKeys =  {};
	dnsSecKeys.DnsSecKey1=dnsSecKey1;
	dnsSecKeys.DnsSecKey2=dnsSecKey2;
	dnsSecKeys.DnsSecKey3=dnsSecKey3;
	dnsSecKeys.DnsSecKey4=dnsSecKey4;
	dnsSecKeys.DnsSecKey5=dnsSecKey5;

	//Extension
	extension =  {};
	extension.Key="Title";
	extension.Value="Mr.";

	//Extensions
	extensions =  [{

	}]

	//PrivacyProxy
	privacyProxy =  {};
	privacyProxy.Type="None";
	privacyProxy.PrivacyAdmin=false;
	privacyProxy.PrivacyTech=false;
	privacyProxy.PrivacyBilling=false;
	privacyProxy.Extensions=extensions;

	//Domain
	domain =  {};
	domain.DomainName="testdomain.com";
	domain.DomainHandle="DomainHandleTest";
	domain.RegPeriod=1;
	domain.RenewPeriod=1;
	domain.Status="StatusTest";
	domain.AuthInfo="X4FF!zu";
	domain.ExpDate="2026-11-18T18:57:41.854Z";
	domain.EncodingType="EncodingTypeTest";
	domain.DomainPurpose="DomainPurposeTest";
	domain.Comment="CommentTest";
	domain.TransferLock="Unlock";
	domain.DeleteLock="Unlock";
	domain.UpdateLock="Unlock";
	domain.QueueType="QueueTypeTest";
	domain.Registrant=registrant;
	domain.AdminContact=adminContact;
	domain.TechContact=techContact;
	domain.BillingContact=billingContact;
	domain.ResellerContact=resellerContact;
	domain.NameServers=nameServers;
	domain.Trademark=trademark;
	domain.DnsSecKeys=dnsSecKeys;
	domain.PrivacyProxy=privacyProxy;
	domain.DomainType="DomainTypeTest";
	domain.DiscloseSocialData="true";

	//Order
	order =  {};
	order.Type="NotSet";
	order.AccountReference="AccountReferenceTest";
	order.Status="NotSet";
	order.TransactionComment="TransactionCommentTest";
	order.Comments="RegistrarTag";
	order.Options="OptionsTest";
	order.LocalPresence="off";
	order.Batch="BatchTest";
	order.Documentation="DocumentationTest";
	order.Domain=domain;
	order.AgreedPrice=5000;	
	soap.createClient("../AscioServiceTest.wsdl", function(err, client) {
		if(err) {
			callback(err);
		} 
		else {
			client.ValidateOrder({sessionId: "sessionId", order: order}, function(err,result) {
				if(err) {
					callback({error: err, request : result.request.body});
				} else {
					if(result.ValidateOrderResult.ResultCode < 400) {
						callback(null,result);	
					} else {
						callback({error: result.ValidateOrderResult,request : request});
					}
				}
			});
		};
	});
};
validateOrderExample(function(err,result) {
	if(err) {
		console.log("\n\n Request \n\n",err.request, "\n\n Response \n\n" ,err.error,"\n");
	}
	else {
		console.log(result);
	}
});
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.