title: Soap client from WSDL: add ws-security header
body: <p>In c# console project i have added a service reference from wsdl.</p>
  
  <p>In the app config i have the following xml code:</p>
  
  <pre><code>&lt;bindings&gt;
       &lt;basicHttpBinding&gt;
           &lt;binding name="verificaValiditaPatenteSoap11" /&gt;
       &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  &lt;client&gt;
      &lt;endpoint address="http://myurl.com/services/myservice"
              binding="basicHttpBinding" bindingConfiguration="xxxxxxxx"
              contract="xxxxxx" name="xxxxxx" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p>When i see the output of the request i have no wsse header.
  I need in the message the following header in the request. How can i achieve this? How can i add the ws-security? There is any tutorial?</p>
  
  <pre><code>&lt;soapenv:Header&gt;&lt;wsse:Security soapenv:mustUnderstand="1" 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-91C0647D2779DF588C14621957892417"&gt;&lt;wsse:Username&gt;MyUsername&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;MyPassword&lt;/wsse:Password&gt;&lt;/wsse:UsernameToken&gt;&lt;/wsse:Security&gt;&lt;/soapenv:Header&gt;
  </code></pre>