question about soapClent in php
        Posted  
        
            by Alejandra 
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Alejandra 
        
        
        
        Published on 2010-05-13T21:47:19Z
        Indexed on 
            2010/05/13
            21:54 UTC
        
        
        Read the original article
        Hit count: 204
        
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
© Stack Overflow or respective owner