Location API on Aloashbei Platform

To work with Aloahbei platform, first configure the .wsdl file for LBS which is given on the Aloashbei site. Or you can download it from here.

index.php

class LBSRequest {
 public $msisdn;
 function  __construct($num) {
 $this->msisdn = $num;
 }
 public $registrationID = "******";
 public $password= "******";
}

class GPInit {
 public $LBSRequest;
}

if(isset ($_POST['number'])) {
 $GPInit = new GPInit();
 $GPInit->LBSRequest = new LBSRequest("88".$_POST['number']);
 $result = $soap->requestLocation($GPInit);
}

Download full code