Ascio Web Service v3

PHP 5 CreateOrder

Register

The Domain Monitoring scans zones for keyword variations. The keywords are scanned in a predefined NotificationFrequency:

  • Daily
  • Weekly
  • Biweekly
  • Monthly

There a different scanning configuration that can be set with the Tier parameter:

  • 1: Search CCTlds
  • 2: Search all TLDs

Please enter 1 or 2 for the Tier

CreateOrderResponse CreateOrder(SecurityHeaderDetails $securityHeader,CreateOrderRequest $request)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

CreateOrder Request

PropertyType
request

CreateOrderResponse

PropertyDescription
CreateOrderResult
OrderInfo
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PropertyValue
OrderTypeRegister
requestNameWatchOrderRequest

PHP 5 example

<?php
$wsdl = "https://aws.demo.ascio.com/v3/aws.wsdl";
//$wsdl = "https://aws.ascio.com/v3/aws.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1, "soap_version" => SOAP_1_1));
$credentials = array("Account"=> "myaccount", "Password" => "mypassword");
$header = new \SoapHeader("http://www.ascio.com/2013/02","SecurityHeaderDetails", $credentials, false);
$client->__setSoapHeaders($header);
//KeyValue

$keyValue =  [
	"Key" => "Title",
	"Value" => "Mr."
];
//Extensions

$ownerExtensions =  [
	"KeyValue" => [$keyValue]
];
//Registrant

$owner =  [
	"FirstName" => "John",
	"LastName" => "Doe",
	"OrgName" => "Ascio",
	"Address1" => "Address1Test",
	"Address2" => "Address2Test",
	"City" => "CityTest",
	"State" => "StateTest",
	"PostalCode" => "888349",
	"CountryCode" => "DK",
	"Phone" => "+45.123456789",
	"Fax" => "+45.987654321",
	"Email" => $config->getEmail(),
	"Type" => "owner",
	"Details" => "DetailsTest",
	"OrganisationNumber" => "OrganisationNumberTest",
	"Extensions" => $ownerExtensions,
	"VatNumber" => "VatNumberTest",
	"NexusCategory" => "NexusCategoryTest"
];
//KeyValue

$keyValue =  [
	"Key" => "Title",
	"Value" => "Mr."
];
//Extensions

$resellerExtensions =  [
	"KeyValue" => [
	[
		"Key" => "Title",
		"Value" => "Mrs."
	]
	]
];
//Contact

$reseller =  [
	"FirstName" => "John",
	"LastName" => "Doe",
	"OrgName" => "Ascio",
	"Address1" => "Address1Test",
	"Address2" => "Address2Test",
	"City" => "CityTest",
	"State" => "StateTest",
	"PostalCode" => "888349",
	"CountryCode" => "DK",
	"Phone" => "+45.123456789",
	"Fax" => "+45.987654321",
	"Email" => $config->getEmail(),
	"Type" => "owner",
	"Details" => "DetailsTest",
	"OrganisationNumber" => "OrganisationNumberTest",
	"Extensions" => $resellerExtensions
];
//NameWatch

$nameWatch =  [
	"Name" => "ascio-is-great.com",
	"NotificationFrequency" => "Daily",
	"Tier" => 1,
	"EmailNotification1" => "EmailNotification1Test",
	"EmailNotification2" => "EmailNotification2Test",
	"EmailNotification3" => "EmailNotification3Test",
	"EmailNotification4" => "EmailNotification4Test",
	"EmailNotification5" => "EmailNotification5Test",
	"Owner" => $owner,
	"Reseller" => $reseller,
	"ObjectComment" => "Example Object Comment"
];
//NameWatchOrderRequest

$request =  [
	"Type" => "Register",
	"Period" => 1,
	"TransactionComment" => "TransactionCommentTest",
	"NameWatch" => $nameWatch
];
//CreateOrder

$createOrder =  [
	"request" => new SoapVar($request, SOAP_ENC_OBJECT, "NameWatchOrderRequest", "http://www.ascio.com/2013/02","request","http://www.ascio.com/2013/02/AscioService")
];
try{	
    $result = $client->createOrder($createOrder);
    echo "ResultCode : ".$result->CreateOrderResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->CreateOrderResult->ResultMessage."\r\n";
    if(is_array($result->CreateOrderResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->CreateOrderResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

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.