title: WS SOAP Security Header Error
body: <p>I am trying to secure SOAP requests using WSO2's Web Services Framework for PHP.</p>
  
  <p>Here is my request:</p>
  
  <pre><code>$reqPayloadString = &lt;&lt;&lt;XML
         &lt;echo&gt;
         &lt;echoRequest&gt;TEST&lt;/echoRequest&gt;
         &lt;/echo&gt;
  XML;
  
  
  $reqMessage = new WSMessage($reqPayloadString,
                                  array("to" =&gt; "http://localhost/service/echo",
                                        "action" =&gt; "echo"));
  
  $sec_token = new WSSecurityToken(array("user" =&gt; "myusername",
                                         "password" =&gt; "mypassword",
                                         "passwordType" =&gt; "Digest"));  
  
  $client = new WSClient(array("useWSA" =&gt; TRUE,
                               "policy" =&gt; new WSPolicy(file_get_contents("policy.xml")),
                               "securityToken" =&gt; $sec_token));
  
  $resMessage = $client-&gt;request($reqMessage);
  </code></pre>
  
  <p>However, I receive the following error:</p>
  
  <pre><code>Missing wsse:Security header in request
  </code></pre>
  
  <p>How should I set  the <code>wsse:Security</code> header in the request above?</p>