Calling a web service from my controller:
$client = new \\SoapClient(\"http://.../webservice/NAME_OF_PAGE.asmx?WSDL\");
$result = $client->EstadoHabitacio
Complete Reference Code To Soap Response XML File Here How To parse we will see in below example code
1
Ahmedabad
23.045839
72.550578
21
Amritsar
31.705603
74.807337
using this code you can easily get all the Tables data in $title variable and using that you can easily get any specific value easily...
'USENAME','Password'=>'PASSWORD','UserCode'=>'1991');
$wsdl = 'http://SITENAME.com/service.asmx?WSDL';
try {
$soap = new SoapClient($wsdl);
$header = new SoapHeader('http://tempuri.org/', 'AuthHeader', $apiauth);
$soap->__setSoapHeaders($header);
$data = $soap->methodname($header);
}
catch(Exception $e) {
die($e->getMessage());
}
// echo "";
// print_r($data->xyzResult->any);
$response = $data->xyzResult->any;
$sxe = new SimpleXMLElement($response);
$sxe->registerXPathNamespace('d', 'urn:schemas-microsoft-com:xml-diffgram-v1');
$result = $sxe->xpath("//NewDataSet");
echo "";
foreach ($result[0] as $title) {
print_r($title);
}
die;
?>