PHP 5 UpdateContact

Updating a contact based on a specific contact handle. No domaindata at the registry is changed. This method is only updating internal data, that will be used for the next orders. For a contact-update at the registry the OrderType Contact_Update" is needed.

Response UpdateContact(string $sessionId,Contact $contact)

Response codes

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

UpdateContact request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
contact

UpdateContactResponse

Property
UpdateContactResult

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 ));

//Contact

$contact= array(
	"FirstName" => "John",
	"LastName" => "Doe",
	"Address1" => "Address1Test",
	"PostalCode" => "888349",
	"City" => "CityTest",
	"CountryCode" => "DK",
	"Email" => $config->getEmail(),
	"Phone" => "+45.123456789"
);
//UpdateContact

$updateContact= array(
	"sessionId" => env.getSessionId(),
	"contact" => $contact
);
try{	
    $result = $client->updateContact($updateContact);
    echo "ResultCode : ".$result->UpdateContactResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->UpdateContactResult->Message."\r\n";
    if($result->UpdateContactResult->Values) {
        foreach($result->UpdateContactResult->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)