How to add custom SOAP header to SOAP request

How to add custom SOAP header to SOAP request

book

Article ID: KB0080380

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks BW 6

Description

BW Invoke activity does not have option to add custom SOAP header. To achieve this, user should use SOAPReferenceBinding -> Undescribed Header Configuration section. 

 

Issue/Introduction

How-to-add-custom-SOAP-header-to-SOAP-request

Environment

All

Resolution

Configuration steps:
1. create a WSDL message and define custom SOAP header element.
2. in SOAPReferenceBinding -> operation ->operation request -> Undescribed Header Configuration, click Add button and select the WSDL message in step #1
3. in BW process -> Service Reference, add an Input Context parameter 
4. in BW process, add SetContext activity before Invoke activity. The input data in SetContext is mapped to the custom SOAP header.
5. in SOAPReferenceBinding -> Context Mappings -> Request Context, map the Context parameter to the UndescribedHeaders 

Attached is a demo project 
 

Additional Information

https://docs.tibco.com/pub/activematrix_businessworks/6.4.2/doc/html/GUID-947A5E22-BD6D-4ABB-9AC2-9DE3C2A617711.html

Attachments

How to add custom SOAP header to SOAP request get_app