ContactOwnerUpdate

From NETIM
Jump to: navigation, search



Release Runtime
API >= 2.0 Synchronous


Description

Edit owner details

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


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (12) idContact ID of the contact to be updated
StructOwnerContact datas New owner details


Return

A structure StructOperationResponse


Notes

Can be only used on a contact object with isOwner=1, replace domainUpdateOwner.
All nic-handles linked to the contact object will be updated at registries.


Examples

Langage PHP

<?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); 
} 
?>
Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous