Set session lang

				
					void sessionSetPreference(string idSession, string type, string value)
			

Set the language in which the API will respond.

REQUIRED

  • idSession string (32)
    Session ID
  • type string
    Set to “lang”.
  • value string
  • Set to :

    “EN” for english

    “FR” for french

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