The attached IS 7.1 package contains a single example Flow service that can be used to create a soap message envelope containing a valid WS-Security UsernameToken.
This starter service assigns static values for the wsu:IDs and timestamps, but you’ll get the idea.
If you use a password digest, then you have to populate that value carefully to follow the WS-Security 1.0 UsernameToken Profile.
At any rate here’s an example of a soap message produced by the attached sample:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><wsse:Security xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">
<wsu:Timestamp wsu:Id="foo_id_1">
<wsu:Created>2008-02-20T15:00:00.000-07:00</wsu:Created>
<wsu:Expires>2008-02-20T15:30:00.000-07:00</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken wsu:Id="foo_id_2">
<wsse:Username>mcarlson</wsse:Username>
<wsse:Password wsse:Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password123</wsse:Password>
<wsu:Created>2008-02-20T15:00:00.000-07:00</wsu:Created>
</wsse:UsernameToken>
</wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
WmUsersIS71SoapSamples.zip (8.7 KB)
#webMethods#API-Management#soa