See information about the latest product version
Configuring the message map to include the SOAP message
In WebSphere® Message Broker, a SOAP message is described by a generic model that includes the SOAP Envelope and optionally Attachments. You define your SOAP message parts in a message map by using the Cast function.
About this task
A SOAP message consists of an Envelope and optionally Attachments. The envelop contains a SOAP header and a SOAP body. A SOAP body can include SOAP faults.
In WebSphere Message Broker, when you use SOAP nodes, a SOAP message is described by a generic model. For more information, see SOAP tree overview.
In addition to the standard SOAP parts, the SOAP message generic model includes a Context part that includes contextual information about the current SOAP message being processed. This is the only part in a message map whose structure is included automatically. You must define the other SOAP message parts manually by using the Cast function.
The following table compares the SOAP message structure with the WebSphere Message Broker SOAP message generic model:
Standard SOAP message parts | Status | WebSphere Message Broker SOAP message parts | WebSphere Message Broker Status |
---|---|---|---|
Context | Required | ||
SOAP header (part of the SOAP envelop) | Optional | Header (part of the SOAP_Domain_Msg) | Optional |
SOAP body (part of the SOAP envelop) | Required | Body (part of the SOAP_Domain_Msg) | Required |
SOAP faults (part of the SOAP body) | Optional | Fault (part of the Body) | Optional |
SOAP Attachments | Optional | Attachment (part of the SOAP_Domain_Msg) | Optional |
In this scenario, you learn how to configure your message map to map the standard SOAP message parts which make up the SOAP_Domain_Msg.
Procedure
Complete the following steps to configure the SOAP_Domain_Msg when the Mapping node is connected directly from a SOAPInput node with no SOAPExtract node:
Results
Your have configured a message map that transforms a SOAP message.
You now have a message map that transforms address data, based on the country of the address. The message map contains a nested map that uses the If, Else if, and Else transform that you defined.
The following figure shows the message map after you complete the previous steps:
What to do next
You have successfully completed the scenario. Your map is now ready to use.