I asked about this 6 months ago but haven't solved it - now the client is complaining
the site accesses a wsdl service via SOAP - which goes offline a lot - so url of wsdl is valid but wsdl is not there
am using Pear > SOAP
al I want to do is check if the wsdl exists and show a message if it is offline - what happens now is that I get soap errors dumped to screen if service is offline
try
{
$vies = new SoapClient($wsdl);
}
catch(SoapFault $e){
$return_value = 'VAT check service is not available.';
return $return_value;
}
what seems to happen if the wsdl is offline is that at the 'try' statement, the soap code barfs ... and only then runs the 'catch' process
can I suppress these errors?
anything else I can do?