Hello

From NETIM
Jump to: navigation, search


Description

Returns a welcome message

string hello(string idSession)


Parameters

Format Variable Description Notes
string (32) idSession Session ID


Return

A string


Notes

This function can be used to obtain the version number of the API on which the connection is made or to test if the session is still active.


Examples

PHP

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{ 
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); 
      $str = $clientSOAP->hello($idSession); 
 
      echo($str); 
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->logout($idSession); 
} 
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      System.out.println(port.hello(idSession)); 
 
      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
Shared Hosting
Old Hosting offers
SSL Certificates
Resellers
Affiliates
Contact Us
Miscellaneous