How to read Soap Header WS-Security.

How to read Soap Header WS-Security.

book

Article ID: KB0093047

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
Implemented WS security with outbound security policy on SOAP R/R activity using UserNameToken for Authentication. On the BW service side, need to read the username from Soap Header.

Issue/Introduction

How to read Soap Header WS-Security.

Resolution

You can use the Context Resource which allows you to specify a schema to hold context data from an incoming request or outgoing replies to a service. This allows you to pass on data, such as the username and password sent by the requesting application, to operation implementations without requiring the implementations to be aware of which transport the request was bound to. Also, you can pass data from the process that implements an operation back to the service for any outgoing reply message. The Context Resource can also be used to store SOAP headers or message attachments.

A demo project is attached (Filename: WSSecurity.zip).

Additional Information

BW Palette Reference, Chapter 15 Service Palette, Context Resource

Attachments

How to read Soap Header WS-Security. get_app