ContactUpdate

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Edit contact details

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


Parameters

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


Return

A structure StructOperationResponse


Notes

Can't be used on a contact object with isOwner=1, use contactOwnerUpdate instead.
All nic-handles linked to the contact object will be updated at registries.


Examples

PHP

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


Release Runtime
API > 1.0 Asynchronous


Description

Edit contact details

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


Parameters

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


Return

A tracking ID


Notes

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


Examples

PHP

<?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"] = ""; 
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");                                     
      $trackingID = $clientSOAP->contactUpdate($idSession, "ID01", $structContact); 
 
      echo($trackingID); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
int trackingID; 
StructContact structContact = new StructContact(); 
 
structContact.setFirstName("Example"); 
structContact.setLastName("NETIM"); 
structContact.setBodyForm("IND"); 
structContact.setBodyName(""); 
structContact.setAddress1("165 avenue de bretagne"); 
structContact.setAddress2(""); 
structContact.setZipCode("59000"); 
structContact.setArea(""); 
structContact.setCity("Lille"); 
structContact.setCountry("FR"); 
structContact.setPhone("+33 123456789"); 
structContact.setFax("+33 123456789"); 
structContact.setEmail("example@netim.com"); 
structContact.setLanguage("FR"); 
structContact.setIsOwner(0); 
 
structContact.setTmName(""); 
structContact.setTmNumber(""); 
structContact.setTmType(""); 
structContact.setCompanyNumber(""); 
structContact.setVatNumber(""); 
structContact.setBirthDate(""); 
structContact.setBirthZipCode(""); 
structContact.setBirthCity(""); 
structContact.setBirthCountry(""); 
structContact.setIdNumber(""); 
structContact.setadditional(""); 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "FR"); 
 
      trackingID = port.contactUpdate(idSession, "ID01", structContact); 
      System.out.println("trackingID : " +trackingID); 
 
      port.logout(idSession); 
} 
catch (RemoteException re) 
{ 
      System.out.println(re.getMessage()); 
} 
catch (ServiceException se) 
{ 
      se.printStackTrace(); 
}


Personal tools
Namespaces

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