not sure how to do this..
I have a wsdl service accessed via SOAP but the wsdl goes offline from time to time
so the url remains valid but the wsdl is not there
how do I check the wsdl exists?
I just get soap errors right now
$nsclient = new SoapClient($wsdl);
edit:
I tried this:
try
{
$nsclient = new SoapClient($wsdl,array('exceptions' => TRUE));
}
catch (SoapFault $e)
{
$return_value ='service not available';
}
but I still get uncaught SOAP errors
thanks!