Login

From NETIM
Jump to: navigation, search


Release
API >= 2.0

It is recommanded to use the function sessionOpen instead.

Description

Opens a session for the reseller

string login(string idReseller, string password, string language)


Parameters

Format Variable Description Notes
string (8) IdReseller Reseller account
string password Password
string (2) language Language for messages FR / EN


Return

A session ID - string(32)


Notes

The session number must be kept for next function calls.


Examples

PHP

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


JAVA

DRSServiceLocator service = new DRSServiceLocator(); 
String idSession; 
 
try 
{ 
      DRSPortType port = service.getDRSPort(); 
      idSession = port.login("XXXX", "XXXX", "EN"); 
 
      System.out.println("Login OK"); 
} 
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