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.
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
$structContact = array(); 
$structContact["firstName"] = "firstName"; 
$structContact["lastName"] = "lastName"; 
$structContact["bodyForm"] = "IND"; 
$structContact["bodyName"] = ""; 
$structContact["address1"] = "number and street"; 
$structContact["address2"] = ""; 
$structContact["zipCode"] = "zipCode"; 
$structContact["area"] = "area"; 
$structContact["city"] = "city"; 
$structContact["country"] = "country";       
$structContact["phone"] = "phone"; 
$structContact["fax"] = "fax"; 
$structContact["email"] = "email"; 
$structContact["language"] = "EN"; 
$structContact["isOwner"] = 0; 
$structContact["tmName"] = ""; 
$structContact["tmNumber"] = ""; 
$structContact["tmType"] = ""; 
$structContact["tmDate"] = ""; 
$structContact["companyNumber"] = ""; 
$structContact["vatNumber"] = ""; 
$structContact["birthDate"] = ""; 
$structContact["birthZipCode"] = ""; 
$structContact["birthCity"] = ""; 
$structContact["birthCountry"] = ""; 
$structContact["idNumber"] = ""; 
$structContact["additional"] = array(); 
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN");                                     
      $StructOperationResponse = $clientSOAP->contactUpdate($idSession, "ID01", $structContact); 
 
      print_r($StructOperationResponse); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>