title: Checking a URL is valid (from php soap client)
body: <p>I am writing a web app which will allow the user to specify a URL for a SoapClient. I wanted to validate that php can connect to the client when the user submits a form. I thouhgt I could do this via try catch or set_error_handler (or some combination of the two). However it looks like this is not possible for fatal errors. Is there a way to get SoapClent to test a URL which won't throw an unrecoverable error?</p>
  
  <pre><code>Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://example.com/wibble'
  </code></pre>
  
  <p>I want it to flag an error as the URL doesn’t exist, but I would like to be able to catch it. </p>
  
  <p>Otherwise I suppose I could try to download and validate the URL myself, but I would have thought that it would be possible to do it from the SoapClient. </p>
  
  <p>Should this be a fatal error?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>After reading rogeriopvl's answer I reaslise that I should have said that I had tried the 'exceptions' option to the soapclient constructor and (in desperation) the use-soap-error-handler function.</p>