title: Disable certificate verification in PHP SoapClient
body: <p><strong>Summary:</strong><br/>
  Is there a way to force the built in SoapClient-class in PHP to connect over HTTPS to a server with an invalid certificate?</p>
  
  <p><strong>Why would I want to do that?</strong><br/>
  I have deployed a new application on a server that has no DNS entry or certificate yet. I want to try connecting to it with a SoapClient <em>before</em> setting up the DNS entry and fixing the certificate, and the most reasonable way to do this seems to be to just make the client ignore the certificate during testing.</p>
  
  <p><strong>Don't I realise that this is a huge security risk?</strong><br/>
  This is only for testing. When the service goes into production, there will be a valid certificate in place, and the client will be forced to validate it.</p>