title: Missing wsse:Security header in request
body: <p>I try to add rampart security to my axis 2 project using this <a href="http://jkrzemie.files.wordpress.com/2011/02/ws.pdf" rel="nofollow">tutorial   </a><strong>page 19- 22</strong></p>
  
  <p>SO everything seems fine but when I switch to soapUI perspective to try to  test the service 
  the request which I'm proposed is :</p>
  
  <pre><code>soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis2wstest"&gt;
   &lt;soapenv:Header/&gt;
     &lt;soapenv:Body&gt;
        &lt;axis:testws&gt;
           &lt;!--Optional:--&gt;
           &lt;axis:x&gt;5&lt;/axis:x&gt;
        &lt;/axis:testws&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p><strong>and it gives me as a response:</strong></p>
  
  <pre><code>faultstring&gt;Missing wsse:Security header in request&lt;/fau
  </code></pre>
  
  <p>SO I add the security header and my request becomes  the same as the one written in the tutorial</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:axis="http://axis2wstest"&gt;
   &lt;soapenv:Header&gt;
  &lt;wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-
  200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"&gt;
  &lt;wsse:UsernameToken xmlns:wsu="http://docs.oasis-
  open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="123"&gt;
  &lt;wsse:Username&gt;test&lt;/wsse:Username&gt;
  &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-
  200401-wss-username-token-profile-1.0#PasswordText"&gt;pass&lt;/wsse:Password&gt;
  &lt;/wsse:UsernameToken&gt;
  &lt;/wsse:Security&gt;
  &lt;/soapenv:Header&gt;
     &lt;soapenv:Body&gt;
        &lt;axis:testws&gt;
           &lt;!--Optional:--&gt;
           &lt;axis:x&gt;5&lt;/axis:x&gt;
        &lt;/axis:testws&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p><strong>but the response is the same</strong></p>
  
  <pre><code>soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;soapenv:Body&gt;
        &lt;soapenv:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"&gt;
           &lt;faultcode&gt;wsse:InvalidSecurity&lt;/faultcode&gt;
           &lt;faultstring&gt;Missing wsse:Security header in request&lt;/faultstring&gt;
           &lt;detail/&gt;
        &lt;/soapenv:Fault&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;
  </code></pre>