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,array( "trace" => 1 ));

//Registrant

$registrant= array(
	"Name" => "John Doe",
	"Address1" => "Address1Test",
	"City" => "CityTest",
	"PostalCode" => "888349",
	"CountryCode" => "DK",
	"Email" => $config->getEmail(),
	"Phone" => "+45.123456789"
);
//CreateRegistrant

$createRegistrant= array(
	"sessionId" => env.getSessionId(),
	"registrant" => $registrant
);
try{	
    $result = $client->createRegistrant($createRegistrant);
    echo "ResultCode : ".$result->CreateRegistrantResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->CreateRegistrantResult->Message."\r\n";
    if($result->CreateRegistrantResult->Values) {
        foreach($result->CreateRegistrantResult->Values as $key => $value) {
            echo $value->string."\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)