ContactInfo
From NETIM
Release | Runtime |
---|---|
API >= 2.0 | Synchronous |
Description
Returns all informations about a contact object
StructContactReturn contactInfo(string idSession, string idIdentifiant)
Parameters
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Session ID | |
string (12) | idIdentifiant | ID of the contact to be queried |
Return
A structure StructContactReturn
Notes
None
Examples
PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); $StructContactReturn = $clientSOAP->contactInfo($idSession, "ID01"); print_r($StructContactReturn); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if (isset($idSession)) { $clientSOAP->sessionClose($idSession); } ?>
Release | Runtime |
---|---|
API > 1.0 | Synchronous |
Description
Returns all informations about a contact object
StructContactReturn contactInfo(string idSession, string idIdentifiant)
Parameters
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Session ID | |
string (8) | idIdentifiant | ID of the contact to be queried |
Return
A structure StructContactReturn
Notes
None
Examples
PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); $StructContactReturn = $clientSOAP->contactInfo($idSession, "ID01"); print_r($StructContactReturn); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if (isset($idSession)) { $clientSOAP->logout($idSession); } ?>
JAVA
DRSServiceLocator service = new DRSServiceLocator(); String idSession; StructContactReturn structContactReturn; try { DRSPortType port = service.getDRSPort(); idSession = port.login("XXXX", "XXXX", "EN"); structContactReturn = port.contactInfo(idSession, "ID01"); System.out.println(structContactReturn.getFirstName() +" "+ structContactReturn.getLastName()); port.logout(idSession); } catch (RemoteException re) { System.out.println(re.getMessage()); } catch (ServiceException se) { se.printStackTrace(); }