title: How to call a secure webservice using SoapClient if Host is not trusted
body: <p>I want to use PHP's SoapClient to connect to a Webservice that is hosted in a secure HTTP. The server  - where this webservice is hosted -  does not have a SSL certificate. When I tried to connect using SoapClient, I got following error - </p>
  
  <p>"Warning: SoapClient::__construct() [function.--construct]: SSL: fatal protocol error".</p>
  
  <p>SOAP Fault string -> SOAP-ERROR: Parsing WSDL: PHP-SOAP doesn't support transport 'http://schemas.microsoft.com/soap/tcp'</p>
  
  <p>SOAP Fault code : WSDL .</p>
  
  <h2>My code</h2>
  
  <pre><code>try {
              $client = new SoapClient('https://mywebservicelink?wsdl', array(
                  'allow_self_signed' =&gt; 1,
                  'verify_peer'       =&gt; 0,
                  'trace'             =&gt; 1,
                  'exceptions'        =&gt; 1,
              ));
  
  
              echo 'SOAP OBJECT&lt;br /&gt;';
              echo '&lt;pre&gt;';
              print_r($client);
              echo '*****************&lt;br /&gt;';
          } catch (Exception $e) {
              echo '&lt;pre&gt;';
              die(print_r($e));
         }
  </code></pre>
  
  <p>Hope this information would be enough.
  Any one please tell me why I'm getting such an error? Is it because of certificate issue ? 
  certificate (crt file) ?</p>
  
  <p>Thanks for any help</p>