title: PHP SOAP with HTTPS webservice and .PEM client certificate
body: <p>How to create PHP SOAP with HTTPS webservice and .PEM client certificate ?</p>
  <p>When i did that i received the follow errors:</p>
  <blockquote>
  <p>array(2) { [0]=&gt; string(38) &quot;testeResponse teste(teste $parameters)&quot; [1]=&gt; string(38) &quot;testeResponse teste(teste $parameters)&quot; }</p>
  <p>Fatal error: Uncaught SoapFault exception: [wsse:InvalidSecurity] SOAP header missing in D:\Inetpub\wwwroot\SOAP\index.php:47 Stack trace: #0 [internal function]: SoapClient-&gt;__call('teste', Array) #1 D:\Inetpub\wwwroot\SOAP\index.php(47): SoapClient-&gt;teste(Array) #2 {main} thrown in D:\Inetpub\wwwroot\SOAP\index.php on line 47</p>
  </blockquote>
  <p>The code:</p>
  <pre><code>$client = new SoapClient($wsdl, array(
      'local_cert'  =&gt; $localCert, 
       'passphrase' =&gt; $passphrase, 
       'style'      =&gt; SOAP_DOCUMENT, 
       'use'        =&gt; SOAP_LITERAL, 
       'exceptions' =&gt; true, 
       'trace'      =&gt; true)
  );
  $something = $client-&gt;teste(array());
  echo $something-&gt;testeResult;
  </code></pre>