Error, "Context has not been set." thrown from GetContext palette.

Error, "Context has not been set." thrown from GetContext palette.

book

Article ID: KB0088138

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:
Description:
==========
Description
========
I have set up a context in the service agent to pass in some header information from incoming requests. The service agent and the context validate correctly. When I pass in the SOAP message to the service and try to access it with the ‘GetContext’ palette, an error is thrown stating the Context has not been set.

This solution explains how to configure context resource to pass in SOAP header information.

Environment:
==========
Business Works: 5.4.2
OS: All

Resolution:
=========
You need finish the configuration of mapping service incoming header with the context.
Under the SOAP Details tab of the Service Configuration, there is a button named "Advanced". Click it and make the required configuration.

Attachments:
===========
Filename:contextScreenPrint.rtf:  screenPrint showing the configuration of the input context.

References:
==========
There is an example Business Works project you can reference under <tibco_home>\bw\5.7\examples\activities\service\soap_http_headers2

Issue/Introduction

Error, "Context has not been set." thrown from GetContext palette.