title: How to pass authentication header for WSDL XML with PHP soap?
body: <p>I have the following auth header to be passed from php soap client</p>
  <pre><code>&lt;soap:Header&gt;
   &lt;AuthNASoapHeader   xmlns=&quot;http://example.com/Wholesale&quot;&gt;
    &lt;ClientName&gt;string&lt;/ClientName&gt;
    &lt;Password&gt;string&lt;/Password&gt;
  &lt;/AuthNASoapHeader&gt;
  </code></pre>
  <p>&lt;/soap:Header&gt;
  How can I pass this in PHP soap header?. In the WSDL file I have it like</p>
  <pre><code> &lt;s:element name=&quot;AuthNASoapHeader&quot; type=&quot;tns:AuthNASoapHeader&quot; /&gt;
    &lt;s:complexType name=&quot;AuthNASoapHeader&quot;&gt;
      &lt;s:sequence&gt;
        &lt;s:element minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; name=&quot;ClientName&quot; type=&quot;s:string&quot; /&gt;
        &lt;s:element minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; name=&quot;Password&quot; type=&quot;s:string&quot; /&gt;
      &lt;/s:sequence&gt;
      &lt;s:anyAttribute /&gt;
    &lt;/s:complexType&gt;
    &lt;s:element name=&quot;StartFixedLineTest&quot;&gt;
      &lt;s:complexType&gt;
        &lt;s:sequence&gt;
          &lt;s:element minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; name=&quot;circuitNumber&quot; type=&quot;s:string&quot; /&gt;
        &lt;/s:sequence&gt;
      &lt;/s:complexType&gt;
    &lt;/s:element&gt;
  </code></pre>
  <p>I would also like to know how can I call the function StartFixedLineTest after passing the authentication header. Please help</p>