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