Configuring Context Resource

The way headers are configured in Headers for Declared Faults, define the Context Resource that can be used to map user inputs to the configured headers.

Note: Irrespective of the number of fault messages for which headers are configured, there will be only one shared context resource to be used. Hence, the schema defined for this context resource will be a superset of all schemas.

Context Resource

Mappings on the Fault Context Tab

To do mappings on the Context Resource:

Procedure

  1. Go to Fault Context tab and pick the configured context resource.

  2. Mappings on Fault Context

  3. Map the Context Data to the configured headers in the Transport Data.

  4. Mapping Configured Headers

In the Implementation process before sending the invalidName fault, use the Set Context Activity and configure values as shown in the following figure.

Implementation Process

Note: Ensure that right header context is set before sending the appropriate fault message.

Configuring fault in the declared fault shows the Fault Header on the wire in the outgoing SOAP fault message and incoming SOAP fault message under the header section.

For example, if you configure headers for invalidName fault and use the SetConetxt activity to configure them in the process but select throw miscError fault in the Generate Error activity, then that fault header configuration will be ignored.