title: how to authenticate Soap Header in nusoap server in PHP?
body: <p>I am trying to make stub server of .net soap service in php by using nusoap. I am not able to authenticate the header in my PHP code. 
  Sample Xml is </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Header&gt;
      &lt;AuthenticationHeader xmlns="http://tempuri.org/"&gt;
        &lt;UserName&gt;string&lt;/UserName&gt;
        &lt;Password&gt;string&lt;/Password&gt;
      &lt;/AuthenticationHeader&gt;
    &lt;/soap:Header&gt;
    &lt;soap:Body&gt;
      &lt;getUserPackDetails xmlns="http://tempuri.org/" /&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Should i parse the soap header as a complex type or there is any other way?</p>