1. /**
  2.   *
  3.  * @author Enjay IT Solutions Limited
  4.  */
  5.  */

  6.  /*Create Instance of SOAP Client Initialize webservice with ESM WSDL*/
  7.  $SoapClient = new SoapClient("http://synapsemobile.com/soap.php?wsdl");
  8.  
  9.  /* Set your parameters for the request */
  10.  $params = array('username' => ESMAdminUserName,'password' => Password,'lid' => lid); /*Password should be encoded in base 64 Format and Lid stands for Last ID*/

  11.  /* Invoke webservice method with your parameters, in this case: Get_Date */
  12.  $Response = $SoapClient->__soapCall("Get_Data", ($params));

  13.  /* Print Response of Get Data*/       
  14.  print_r($Response);
  15.