Site icon Tutorial

WS-Security Configuration

Configuration of WS-Security 

 

Let’s understand the WS- Security Configuration. SoapUI manages  WS-Security configurations at the project level. These configurations are useful at several places within a project:

If you click on the WS-Security Configurations tab on the project level, four sub-tabs are-

Steps for encrypting a soap request in SoapUI

Keystores and Truststores

The Keystores and Truststores tabs allows you to add an arbitrary number of keystores and truststores to your WS-Security configurations.

Add a new keystore or truststore by selecting the Add button in the toolbar. Then, browse to the corresponding file and press ok. Now, type the password to the file and it will be added to the list.  The Status column will display if loading goes ok.

 

The following columns are available in the Keystores and Truststores table:

Outgoing WS-Security configurations

Outgoing WSS configurations are helpful in processing outgoing messages, like adding encryption, signature, etc. Each configuration contains an arbitrary number of entries, each corresponding to some WSS related action to be taken on the outgoing message.

The following columns are available in the Outgoing WS-Security Configurations table:

When selecting a configuration in the table, the lower half of the panel will display a list of applied entries. Now,  select the outgoing configuration, in our case an Encryption and a Timestamp entry. The entries are applied to the outgoing message from top to bottom in the list. It’s also possible to reorder or remove entries by using the toolbar buttons.

Entries

These are the possible entries for the Outgoing WS-Security configurations.

Encryption

Encrypts outgoing messages. These are the configurable fields:

Signature

Signs the outgoing message. These are the configurable fields:

Username

Add a Username token to the outgoing message. These are the configurable fields:

Timestamp

Adds a timestamp entry. The configurable fields are as follows:

SAML (Form) – Adds SAML assertion. The configurable fields are as follows:

Adding outgoing configuration explicitly – As an alternative to using the Auth tab you can right click in a XML view of a request and select the Outgoing WSS menu item. This will try to generate and add the outgoing WSS to the current XML.

Incoming WSS

Incoming WSS configurations are useful in processing incoming messages like decrypting and validating signatures of the incoming messages. Since the WS-Security headers of an incoming message contain most of the information. Further, this information requires to decrypt or validate a message. The only configuration needed by SoapUI is which keystore or truststore that should be used.

The following columns are available in the Incoming WS-Security Configurations table:

 

Make your resume stand out and become a Certified SoapUI Testing Professional. Try free practice tests here!

A great career is just a certification away. So, practice and validate your skills to become a Certified SoapUI Testing Professional.

Exit mobile version