Docly Child

Open session

				
					string sessionOpen(string idReseller, string password, string language)
				
			

Open a new API session.

REQUIRED

  • idReseller string (8)
    Reseller account ID
  • password string
    Password
  • language string (2)
    Language for messages. Values : “FR”, “EN”

String (32) containing a session ID

The session ID must be kept for next function calls.

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