Here’s a sample token created by SoapUI 2.5.1
Clear text password (PasswordText)
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-4391369" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>testuser</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">passw0rd1</wsse:Password>
<wsse:Nonce>MdwCUoMI/9a6QSZr+Heutg==</wsse:Nonce>
<wsu:Created>2009-02-06T21:24:37.265Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
Hashed password (PasswordDigest)
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-14296592" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>testuser</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">lZhfnJFTn/pAB5z9VgZyqjLGpr4=</wsse:Password>
<wsse:Nonce>0IG8ZzeVuTffpY4iXG7TwA==</wsse:Nonce>
<wsu:Created>2009-02-06T21:29:07.841Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
You don’t really need the wsu:Id, the Nonce can be any unique base64-encoded value.
Mark
#API-Management#webMethods#soa