ContactCreate

From NETIM
Jump to: navigation, search


Release Runtime
API >= 2.0 Synchronous


Description

Creates a new contact to be used with domain names or any other service

string contactCreate(string idSession, StructContact datas)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
StructContact datas New contact details


Return

The ID of the new contact - string(12)


Notes

The ID is automatically generated and can not be customized.
Additional fields of the object StructContact must be filled according to the semantic rules of the extension. See Category:Tld


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"); 
      $idContact = $clientSOAP->contactCreate($idSession, $structContact);
 
      echo($idContact); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>


Release Runtime
API > 1.0 Synchronous


Description

Creates a new contact to be used with domain names

string contactCreate(string idSession, StructContact datas)


Parameters

Format Variable Description Notes
string (32) idSession Session ID
StructContact datas New contact details


Return

The ID of the new contact - string(8)


Notes

The ID is automatically generated and can not be customized.
Additional fields of the object StructContact must be filled according to the semantic rules of the extension. See Category:Tld


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"); 
      $idContact = $clientSOAP->contactCreate($idSession, $structContact);
 
      echo($idContact); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if (isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession, idContact; 
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", "EN"); 
 
      idContact = port.contactCreate(idSession, structContact); 
      System.out.println("idContact : " +idContact); 
 
      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