title: nusoap with pfx certificate
body: <p>I need to consume a webService soap with a certificate.</p>
  
  <p>I have a .pfx file and a password.</p>
  
  <p>My code is the next one</p>
  
  <pre><code>require_once('lib/nusoap.php');
  
  $endpoint = "https://interno.vuds-omc.es:9000/WSRegistroMedico";
  $localCert = "cert.pfx"; 
  $options = array(
      'local_cert' =&gt; $localCert, 
      'passphrase' =&gt; 'key0666001',
      'soap_version' =&gt; 'SOAP_1_2', 
      'encoding' =&gt; 'ISO-8859-1',
      'compression' =&gt; '(SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP)',
      'location' =&gt; ''); 
  $client = new soapclient('http://binterno.vuds-omc.es:8000/WSRegistroMedicos?wsdl', $options);
  
  $err = $client-&gt;getError(); 
  if ($err) { // Display the error    
      echo "&lt;h2&gt;Error&lt;/h2&gt;" . $err ; // At this point, you know the call that follows will fail
  }
  
  //$strxml is a string with the xml format 
  
  $result = $client-&gt;call('ActualizacionColegiado',$strxml);
  </code></pre>
  
  <p>The request that i get is "UNAUTHORIZED USER" so, i think that it´s no taking de certificate</p>
  
  <p>Thanks!! </p>