Difference between SOAP security header and SOAP header
<p>What is the difference between SOAP security header (WSSE) and general SOAP header? What if I use just simple soap headers for sending my credentials?</p>

<p>Why I should use this:</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"&gt;
     &lt;wsse:UsernameToken wsu:Id="UsernameToken-1"&gt;
        &lt;wsse:Username&gt;login&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;XXXX&lt;/wsse:Password&gt;
     &lt;/wsse:UsernameToken&gt;
  &lt;/wsse:Security&gt;
</code></pre>

<p></p>

<p>And should not use this:</p>

<pre><code>&lt;S:Header&gt;
    &lt;Username xmlns="http://ws.enterprise.com/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:actor="http://schemas.xmlsoap.org/soap/actor/next"&gt;
        Username text
    &lt;/Username&gt;
&lt;/S:Header&gt;
</code></pre>

<p>Thanks in advance!</p>