question about soapClent in php
- by Alejandra
Hi guys!
I have a question, I´m developing a web page and I communicate with a server via SOAP. my code is in php.
$client = new SoapClient(null, array("location" => "$serverpath",
"uri" => "$namespace",
"style" => SOAP_RPC,
"use" => SOAP_ENCODED ));
try
{
$returnedValue = $client->getInfo($user);
} catch (SoapException $exception)
{
$returnedIDValue = "Caught Soap Exception: $exception\n";
}
the problem is the following, when the SOAP services are down, I do not get any exception, the program only stops.
any suggestion? I would like to handle gracefully that case.
Thanks in advantage
Alejandra