Set session sync mode

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

Set the synchronization mode.

REQUIRED

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

    “0” for asynchronous mode

    “1” for synchronous mode.

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