title: How to write Simple Security in WSO2 ESB Using Security Policy's?
body: <p>I wish to provide security to my Proxy using simple Username and password but my client has fixed request which is entirely different with what wso2esb policies provide Wso2 esb Support for Username Token authentication .I m also want to check just Username&amp;Password.But the pain is my request is not meet to wso2 esb Username Token format.
  Difference between messages what wso2 expecting ..
  My Client Message is</p>
  
  <pre><code>&lt;soapenv:Header&gt;
            &lt;pr:authentication soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns:pr="http://webservices.eeeee.com/ProxyService"&gt;
               &lt;pr:user&gt;mw_ssp&lt;/pr:user&gt;
               &lt;pr:password&gt;MW_ssp003&lt;/pr:password&gt;
            &lt;/pr:authentication&gt;
         &lt;/soapenv:Header&gt;
  </code></pre>
  
  <p>Actual message which wso2 esb expecting is</p>
  
  <pre><code>&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" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" soapenv:mustUnderstand="1"&gt;
           &lt;wsu:Timestamp wsu:Id="TS-4"&gt;
              &lt;wsu:Created&gt;2014-06-02T07:15:21Z&lt;/wsu:Created&gt;
              &lt;wsu:Expires&gt;2014-06-02T08:38:41Z&lt;/wsu:Expires&gt;
           &lt;/wsu:Timestamp&gt;
           &lt;wsse:UsernameToken wsu:Id="UsernameToken-3"&gt;
              &lt;wsse:Username&gt;admin&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;admin&lt;/wsse:Password&gt;
              &lt;wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"&gt;byWKVY4stEATvTqaoNMswQ==&lt;/wsse:Nonce&gt;
              &lt;wsu:Created&gt;2014-06-02T07:15:21.304Z&lt;/wsu:Created&gt;
           &lt;/wsse:UsernameToken&gt;
        &lt;/wsse: &gt;
     &lt;/soapenv:Header&gt;
  </code></pre>
  
  <p>I just want change Header as per the Username Token works.How  would i achieve this
  Any help much appreciated.
  Thanks in Advance. </p>