title: PHP : Subnode of SOAP Header element is not found or recognized
body: <p>I'm trying to call a SOAP Adonix X3 web service by using a php client.</p>
  
  <p>For testing, I used SOAP UI and it worked well ; this is the xml request :</p>
  
  <pre><code>   &lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:a="http://www.adonix.com/WSS"
      xmlns:XS="http://www.w3.org/2001/XMLSchema"
      xmlns:XI="http://www.w3.org/2001/XMLSchema-instance"&gt;
     &lt;S:Header&gt;
      &lt;a:CAdxCallingContext&gt;
          &lt;a:codeLang XI:type="XS:string"&gt;FRA&lt;/a:codeLang&gt;
          &lt;a:codeUser XI:type="XS:string"&gt;ADM&lt;/a:codeUser&gt;
          &lt;a:password XI:type="XS:string"&gt;XXX&lt;/a:password&gt;
          &lt;a:poolAlias XI:type="XS:string"&gt;TEST&lt;/a:poolAlias&gt;
          &lt;a:requestConfig XI:type="XS:string"&gt;trace&lt;/a:requestConfig&gt;
      &lt;/a:CAdxCallingContext&gt;
     &lt;/S:Header&gt;
     &lt;S:Body&gt;
        &lt;a:runXml S:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"&gt;
           &lt;publicName XI:type="XS:string"&gt;RECH_OF&lt;/publicName&gt;
           &lt;inputXml XI:type="XS:string"&gt;
  &lt;![CDATA[
  &lt;PARAM&gt;
  &lt;GRP ID="GRP1"&gt;
  &lt;FLD NAME="XITMREF"&gt;PSFIN00153&lt;/FLD&gt;
  &lt;FLD NAME="XFLUX"&gt;recycle&lt;/FLD&gt;
  &lt;FLD NAME="XOPENUM"&gt;15&lt;/FLD&gt;
  &lt;/GRP&gt;
  &lt;/PARAM&gt;
  ]]&gt;
  &lt;/inputXml&gt;
        &lt;/a:runXml&gt;
     &lt;/S:Body&gt;
  &lt;/S:Envelope&gt;
  </code></pre>
  
  <p>but trying to do the same call in php :</p>
  
  <pre><code>    $sh_param = array(
                      'codeLang'    =&gt;    'FRA',
                      'codeUser'    =&gt;    'ADM',
                      'password'    =&gt;    'XXX',
                      'poolAlias'    =&gt;    'TEST',
                      'requestConfig '    =&gt;    'trace'
                      );
  
  
  $ns = 'http://www.adonix.com/WSS';
  
  
  $headers = new SoapHeader($ns, 'CAdxCallingContext', $sh_param, false);
  
  // Prepare Soap Client
  $soapClient-&gt;__setSoapHeaders(array($headers));
  
  $at_param2 = array(
                              'XITMREF'        =&gt; 'PSFIN00153',
                              'XFLUX'        =&gt; 'recycle',
                              'XOPENUM'        =&gt; '15'); 
  
  
  // Setup the RemoteFunction parameters
  $ap_param = array(
                      'publicName'     =&gt;   'RECH_OF',
                      'inputXml'       =&gt;  array($at_param2));
  
  
  $info = $soapClient-&gt;__call("runXml", array($ap_param));
  </code></pre>
  
  <p>I get the following error :</p>
  
  <pre><code>3 - Le Header element [http://www.adonix.com/WSS][CAdxCallingContext] du message Soap n'a pas de fils [codeLang].
  </code></pre>
  
  <p>this means</p>
  
  <pre><code>The Header element [http://www.adonix.com/WSS][CAdxCallingContext] of the Soap message has no son [codeLang]
  </code></pre>
  
  <p>It seems the server doesn't find the subnode of the header...</p>
  
  <p>any idea ?</p>
  
  <p>Thanks</p>