Forum Discussion
Nastya_Khovrina
6 years agoSmartBear Alumni (Retired)
Hi Chun,
Can you please provide raw requests which you get when you specify the token manually and when you use the "Inherit from parent" option? Also, how did you set up the request in ReadyAPI?
- ChunWong6 years agoNew Contributor
Thanks for the reply
We did the following:
- I add the WSDL to the project and let ReadyAPI generate the request
- Under Projects WS-Security config I add an outgoing ws-s config of the type saml (XML) in which I only put a property (the Token property used in the test case)
- Under SoapUI > Environments > SOAP Service I configure the Environmnet Endpoint Data
- Auth Profile "Inherit from Parent"
- Outgoing WSS: the saml (XML)
When I send the request with the auth setting "Inherit from Parent", the token gets invoked in the header included in a wss node.
This works well for real SAML tokens but the mocked token is ignored.
This is the RAW request I get when I include the mock token manually (removed some sensitve data)
POST EndPoint
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="Action"
Content-Length: 1013
Host: HOST
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_162)
<soap:Envelope xmlns:ns="NameSpace" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:wsa="http://www.w3.org/2005/08/addressing"><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"/> <saml2:NameID>UserName</saml2:NameID> <saml2:Conditions NotBefore="2016-01-01T01:00:00Z" NotOnOrAfter="2019-12-31T01:00:00Z"/> <wsa:Action>"Action"</wsa:Action><wsa:To>EndPoint</wsa:To></soap:Header> <soap:Body> <ns:Version> <ns:p_ManufacturerKey>MF-Key</ns:p_ManufacturerKey> </ns:Version> </soap:Body> </soap:Envelope>
Related Content
- 2 months ago
- 8 years ago
- 2 years ago
Recent Discussions
- 18 hours ago
- 17 days ago