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.
Context Resource
Mappings on the Fault Context Tab
To do mappings on the Context Resource:
Procedure
-
Go to Fault Context tab and pick the configured context resource.
-
Map the Context Data to the configured headers in the Transport Data.
Mappings on Fault Context
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
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.