Ascio Web Service v2

PHP 5 CreateRegistrant

Creating Registrant object. The registrantHandle will be returned in the registrant object passed by reference.

Response CreateRegistrant(string $sessionId,Registrant $registrant)

Response codes

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

CreateRegistrant Request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
registrant

CreateRegistrantResponse

Property
CreateRegistrantResult
registrant

PHP 5 example

<?php
$wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,[ "trace" => 1, "soap_version" => SOAP_1_1)];

//Registrant

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

$createRegistrant =  [
	"sessionId" => env.getSessionId(),
	"registrant" => $registrant
];
try{	
    $result = $client->createRegistrant($createRegistrant);
    echo "ResultCode : ".$result->CreateRegistrantResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->CreateRegistrantResult->ResultMessage."\r\n";
    if(is_array($result->CreateRegistrantResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->CreateRegistrantResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

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.