Update contact

				
					StructOperationResponse contactUpdate(string idSession, string idContact, StructContact datas)
			

Edit contact information.

REQUIRED


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

An Object of type StructOperationResponse

  • Can’t be used on a contact object with isOwner=1, use contactOwnerUpdate instead.
  • All nic-handles linked to the contact object at registries will be updated.
$clientSOAP = new SoapClient('https://URL.wsdl');

$structContact = array(
    'firstName' => 'firstName',
    'lastName' => 'lastName',
    'bodyForm' => 'IND',
    'bodyName' => '',
    'address1' => 'number and street',
    'address2' => '',
    'zipCode' => 'zipCode',
    'area' => 'area',
    'city' => 'city',
    'country' => 'country',
    'phone' => 'phone',
    'fax' => 'fax',
    'email' => 'email',
    'language' => 'EN',
    'isOwner' => 0,
    'tmName' => '',
    'tmNumber' => '',
    'tmType' => '',
    'tmDate' => '',
    'companyNumber' => '',
    'vatNumber' => '',
    'birthDate' => '',
    'birthZipCode' => '',
    'birthCity' => '',
    'birthCountry' => '',
    'idNumber' => '',
    'additional' => array()
);

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

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

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