title: Wcf service server - authentication with usernametoken
body: <p>we are trying to create server from given demo wsdl. Wsdl does not contains security but we need implement usernametoken where request header looks like this: </p>
  
  <pre><code>&lt;soap: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" xmlns:env="http://www.w3.org/2003/05/soap-envelope" env:mustUnderstand="true"&gt;
              &lt;wsse:UsernameToken wsu:Id="UsernameToken-7dd435a5-b8bb-4388-bba3-f77512a14351"&gt;
                  &lt;wsse:Username&gt;CES&lt;/wsse:Username&gt;
                  &lt;wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"&gt;e8I23Z92JGgSREAb=&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;v21JzUcrKZiZ7MC==&lt;/wsse:Nonce&gt;
                  &lt;wsu:Created&gt;2017-10-13T13:00:02.221Z&lt;/wsu:Created&gt;
              &lt;/wsse:UsernameToken&gt;
              &lt;wsse:SecurityTokenReference&gt;
                  &lt;wsse:Embedded wsse:ValueType="http://www.asktirweb.org/security/authentication/username" wsu:Id="alex"/&gt;
              &lt;/wsse:SecurityTokenReference&gt;
          &lt;/wsse:Security&gt;
          &lt;Action xmlns="http://www.w3.org/2005/08/addressing"&gt;http://www.asktirweb.org/services/TIRAccountingService-1/sendInvoice&lt;/Action&gt;
          &lt;MessageID xmlns="http://www.w3.org/2005/08/addressing"&gt;urn:uuid:321a0dff-61a8-4eae-8934-7f06e8d87648&lt;/MessageID&gt;
          &lt;To xmlns="http://www.w3.org/2005/08/addressing"&gt;http://wiesbaden:8040/askdemo/hs/AskTirWebDemo/WsSecurityRequests&lt;/To&gt;
          &lt;ReplyTo xmlns="http://www.w3.org/2005/08/addressing"&gt;
              &lt;Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/Address&gt;
          &lt;/ReplyTo&gt;
      &lt;/soap:Header&gt;
  </code></pre>
  
  <p>Any suggestions ? </p>