Hi Guys,
I am trying to call a web service using php,
I am wrestling two days with an issue, searching on the internet didn't help, I have tried to run simillar examples but I receice an empty browser (without any errors but still with no content)
I am using wamp server and my php code is very simple
<pre><?php
try {
$wsdl_url = "http://**********file?WSDL";
$client = new SOAPClient($wsdl_url);
$param = array(
'Name' => "Greece",
);
$return = $client->GetCitiesByCountry($param);
var_dump($return);
print_r(array_values($return));
echo $return;
} catch (Exception $e) {
echo "Exception occured: " . $e;
}
?>
when I run it I receive an empty browser and nothing else (no errors, nothing) if I writte any other php code it runs properly.
Please i will be greatfull for any help or advise!!
Thank all of you for your time,
Friendly,
Jason
What I have tried:
I tried to and as following but still nothing (in visual studio at C# I run it and worked properly but in php not)
$wsdl_url = "http://**********file?WSDL";
$client = new SOAPClient($wsdl_url);
$param = array(
'Name' => "Greece",
);
$return = $client->GetCitiesByCountry($param);
var_dump($return);
print_r(array_values($return));
echo $return;