Generating Username Token with SoapUI

This section provides a tutorial example on how to generate Username token and insert it into SOAP request header by adding outgoing WS-Security configuration entry to request message in SoapUI.

With the "Username" configuration created, we can continue to generate a SOAP request message that contains a username security token with SoapUI.

1. Right-click on "Hello" and select "New Request". The request screen is displayed with a new SOAP test request message.

2. Click on "Auth" below the request message area on the request screen, The authorization area is displayed.

3. Select "Add a New Authorization". Then select "Basic" as the "Type". Basic authorization fields are displayed.

4. Set "Outgoing WSS" to "Username", which represents the "Username" WS-Security configuration created in the previous tutorial.

5. Click on "Submit request ..." icon in the icon bar on the request screen. The response message will be displayed.

6. Click on the "Raw" vertical tab. You should see "wsse:Security" SOAP header element is added to the request message automatically. See next tutorial for the request message XML.

The picture below shows you the "Authorization" area of the request screen where "Outgoing WSS" is set to the "Username" WS-Security configuration.

SoapUI - Add Outgoing WSS to Request
SoapUI - Add Outgoing WSS to Request

Table of Contents

 About This Book

 Introduction to Web Service

 Introduction to SOAP (Simple Object Access Protocol)

 SOAP Message Structure

 SOAP Message Transmission and Processing

 SOAP Data Model

 SOAP Encoding

 SOAP RPC Presentation

 SOAP Properties Model

 SOAP MEP (Message Exchange Patterns)

 SOAP HTTP Binding

 SOAP PHP Implementations

 PHP SOAP Extension Client Programs

 PHP SOAP Extension Server Programs

 PHP SOAP Web Service Example - getTemp

 SOAP Perl Implementations

 Perl SOAP::Lite - SOAP Server-Client Communication Module

 Perl Socket Test Program for HTTP and SOAP

 Perl SOAP::Lite for NumberToWords SOAP 1.1 Web Service

 Perl SOAP::Lite for SOAP 1.2 Web Services

 Perl SOAP::Lite for WSDL

 Python SOAP Client: Zeep

 SOAP Java Implementations

 Java Socket and HttpURLConnection for SOAP

 SAAJ - SOAP with Attachments API for Java

 SoapUI - SOAP Web Service Testing Tool

WS-Security - SOAP Message Security Extension

 What Is WS-Security (WSS)

 Using XML Signature and Encryption with WSS

 SOAP Header Element "Security"

 What Is WS-Security Username Token Profile

 SoapUI Configuration for Username Token

Generating Username Token with SoapUI

 Validating wsse:Password Digest String

 Password Digest Validation Program

 WS-Security X.509 Certificate Token

 Perl SOAP::Lite for GetSpeech SOAP 1.1 Web Service

 Perl SOAP::Lite 0.710 for SOAP 1.2 Web Services

 Perl SOAP::Lite 0.710 for WSDL

 Web Services and SOAP Terminology

 Archived Tutorials

 References

 Full Version in PDF/EPUB