title: PHP Soap authentication header
body: <p>Sample Request:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="https://ws.intermedia.net/Account/Management"&gt;
  
  &lt;soapenv:Header&gt;
    &lt;AuthentificationInfo&gt;
       &lt;login&gt;[PLRAdminUserName]&lt;/login&gt;
       &lt;password&gt;[PLRAdminPassword]&lt;/password&gt;
       &lt;accountID&gt;[accountID]&lt;/accountID&gt;
    &lt;/AuthentificationInfo&gt;
  &lt;/soapenv:Header&gt;
  &lt;soapenv:Body&gt;
    &lt;GetAccount&gt;
       &lt;accountID&gt;[accountID]&lt;/accountID&gt;
    &lt;/GetAccount&gt;
  &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>WSDL: <a href="https://controlpanel.msoutlookonline.net/WebServices/Account/AccountService.asmx?WSDL" rel="nofollow">https://controlpanel.msoutlookonline.net/WebServices/Account/AccountService.asmx?WSDL</a></p>
  
  <p>PHP:</p>
  
  <pre><code>    ini_set("soap.wsdl_cache_enabled", "0");
  
      $wsdl = "https://controlpanel.msoutlookonline.net/WebServices/Account/AccountService.asmx?WSDL";
      $ns = 'https://ws.intermedia.net/Account/Management';
  
      $client = new SoapClient($wsdl, array(
          "trace" =&gt; 1,
          "exceptions" =&gt; 0
      ));
  
      $login = 'xxxx';
      $password = 'xxxx';
      $partnerID = 1234;
      $accountID = 12345678;
  
      $headerBody = array('AuthentificationInfo'=&gt;array(
          'login' =&gt; $login,
          'password' =&gt; $password,
          'accountID' =&gt; $partnerID
      ));
      $header = new SoapHeader($ns, 'AuthentificationInfo', $headerBody);
      $client-&gt;__setSoapHeaders($header);
      $client-&gt;__soapCall("echoVoid", array(null));
  
      $value = $client-&gt;GetAccount($accountID);
  </code></pre>
  
  <p>I'm getting the following error message:</p>
  
  <pre><code>soap:ServerServer was unable to process request. ---&gt; Access denied; Code: 0x0008
  </code></pre>
  
  <p>Can anyone see anything wrong with the code?</p>