Example #1
0
 public static function Flightlastdata($subflid, $customer_id)
 {
     $conf = new conf();
     $cl = new SoapClient($conf->moghim_wsdl);
     $param = array('subflid' => $subflid, 'AgencyCode' => $customer_id, 'cust' => $conf->moghim_cust, 'pass' => $conf->moghim_pass);
     $res = $cl->Flightlastdata($param);
     $pattern = '/<xs:schema.*<\\/xs:schema>/';
     $xml = preg_replace($pattern, '', $res->FlightlastdataResult->any);
     $response = simplexml_load_string($xml);
     return $response->NewDataSet->publicselectsp;
 }