title: How to config Outgoing WS-Security in Postman?
body: <p>The request works in SoapUI but as we are using Postman-Newman for Automation of this API so how to make this work in Postman.</p>
  <p>I saw some solutions where it says to add security tag in request body but what's the username to provide there as we don't provide any user name in SoapUI.</p>
  <p>How I config in SoapUI</p>
  <ol>
  <li>Select Keystores and select the certificate and add password</li>
  <li>Set &quot;Outgoing WS-Security Configurations&quot; attaching screenshot to show what we have to send in that. keystore, password, key identifier Type and parts</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/El0u3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/El0u3.png" alt="enter image description here" /></a></p>
  <p>Postman config:</p>
  <ol>
  <li>Added the certificate in postman using settings as well added the password.</li>
  <li>Created a request and added the request body</li>
  </ol>
  <p>in request body I tried below but I am not sure what is the username or nonce as we don't give this info in SoapUI. This returns an error <code>The SOAP request has not been signed, or is signed incorrectly</code></p>
  <pre><code>&lt;wsse:Security xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'&gt;
  &lt;wsu:Timestamp wsu:Id='TS-11b7d3261c994de099eb8c431b33947b'&gt;
  &lt;wsu:Created&gt;2019-09-06T12:09:15.604Z&lt;/wsu:Created&gt;
  &lt;wsu:Expires&gt;2019-09-06T12:09:25.619Z&lt;/wsu:Expires&gt;
  &lt;/wsu:Timestamp&gt;
  &lt;wsse:UsernameToken wsu:Id='UsernameToken-238be95be3bf445fb8534666a7a8693c'&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-usernametoken-profile-1.0#PasswordDigest'&gt;***Base64 (SHA-1 (nonce + created + password) )***&lt;/wsse:Password&gt;
  &lt;wsse:Nonce EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soapmessage-security-1.0#Base64Binary'&gt;***Base64 nonce***&lt;/wsse:Nonce&gt;
  &lt;wsu:Created&gt;2019-09-06T12:09:15.604Z&lt;/wsu:Created&gt;
  &lt;/wsse:UsernameToken&gt;
  &lt;/wsse:Security&gt;
  </code></pre>
  <p>Also tried below and here I get soap fault</p>
  <pre><code>    &lt;wsse:Security soapenv:mustUnderstand=&quot;1&quot; xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;
          &lt;wsse:UsernameToken&gt;
              &lt;wsse:Username&gt;XXXXX&lt;/wsse:Username&gt;
              &lt;wsse:Password Type=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText&quot;&gt;XXXXX&lt;/wsse:Password&gt;
          &lt;/wsse:UsernameToken&gt;
      &lt;/wsse:Security&gt;
  </code></pre>
  <p>Also tried below solution but not sure what username to provide here as we only provide Password in SoapUI and not UserName</p>
  <pre><code>        &lt;wsse:Security xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;
              &lt;wsse:UsernameToken xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot;&gt;
                  &lt;wsse:Username&gt;Whattogivehere&lt;/wsse:Username&gt;
                  &lt;wsse:Password&gt;******&lt;/wsse:Password&gt;
              &lt;/wsse:UsernameToken&gt;
          &lt;/wsse:Security&gt;
  </code></pre>