Validating WS-Security responses

Similar to the WS-Addressing specific assertion, soapUI provides us with an assertion to automatically validate secured responses. WS-Security Status assertion can be used to validate that the last received message contained valid WS-Security headers as follows:

Click on Adds an assertion to this item icon at the bottom of the getRoomDetails SOAP request editor and select the WS-Security Status assertion as shown in the following screenshot:

Validating WS-Security responses

This assertion validates the WS-Security headers in the last response message and reports as VALID when the WS-Security headers are present.

Get Web Services Testing with soapUI now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.