Update owner contact

				
					StructOperationResponse contactOwnerUpdate(string idSession, string idContact, StructOwnerContact datas)
			

Edit owner contact information.

REQUIRED


  • idSession string (32)
    Session ID.
  • idContact string (12)
    ID of the contact to be updated.
  • datas object (StructOwnerContact)
    New owner information as StructOwnerContact object

An Object of type StructOperationResponse

  • Can only be used on a contact object with isOwner=1. If not an owner contact, use contactUpdate instead.
  • All nic-handles linked to the contact object at registries will be updated.
  • Additional fields must be filled according to the semantic rules of the extension on which the contact will be used. See relative information for the extension
$clientSOAP = new SoapClient('https://URL.wsdl');

$structOwnerContact = array(
    'address1' => 'number and street',
    'address2' => '',
    'zipCode' => 'zipCode',
    'area' => 'area',
    'city' => 'city',
    'country' => 'country',
    'phone' => 'phone',
    'fax' => 'fax',
    'email' => 'email',
    'language' => 'EN',
    'tmName' => '',
    'tmNumber' => '',
    'tmType' => '',
    'tmDate' => '',
    'companyNumber' => '',
    'vatNumber' => '',
    'birthDate' => '',
    'birthZipCode' => '',
    'birthCity' => '',
    'birthCountry' => '',
    'idNumber' => '',
    'additional' => array()
);

try {
    $idSession = $clientSOAP->sessionOpen('XX000', 'xxxxxxxx');
    $structOperationResponse = $clientSOAP->contactOwnerUpdate($idSession, 'XX01', $structOwnerContact);
    print_r($structOperationResponse);

} catch (SoapFault $fault) {
    echo 'Exception : ' . $fault->getMessage() . "\n";
}

if (isset($idSession)) {
    $clientSOAP->sessionClose($idSession);
}