title: Need secure header code in java
body: <p>I need to access the secure webservice. I need to pass the secure header in the soap request.Please help me to provide the custom secure header code in java.</p>
  
  <p>Requirement:</p>
  
  <pre><code>   &lt;soapenv:Header&gt;
  
   &lt;wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/07/secext"&gt;
  
    &lt;wsse:UsernameToken xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility"&gt;
      &lt;wsse:Username&gt;XYZ&lt;/wsse:Username&gt;
      &lt;wsse:Password Type="wsse:PasswordText"&gt;security&lt;/wsse:Password&gt;
    &lt;/wsse:UsernameToken&gt;
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <p>i Appreciate if any one help me on this.`</p>