Building the main message flow
You can construct a sample main message flow to use with WS-Addressing.
About this task
These steps are the first in a set of instructions on setting up your system to use WS-Addressing with IBM® App Connect Enterprise; they explain how to set up a message flow to use this feature. This topic describes how to construct a sample main message flow when using WS-Addressing.
Procedure
- Switch to the Integration Development perspective.
- Create message flow and message set projects using the Start from WSDL and/or XSD files wizard.
- Select the Web Services folder on the message flow palette to display the contents, and drag a SOAPInput node onto the canvas.
- Add a SOAPExtract node to the message flow to remove the SOAP envelope from the incoming message, followed by a SOAPReply node. Wire the Out terminal of the SOAPInput node to the In terminal of the SOAPExtract node, and wire the Out terminal of the SOAPExtract node to the In terminal of the SOAPReply node.
- Select the WSDL file that you need under Deployable
WSDL from the Active Working Set, and drag it onto the SOAPInput node. The SOAPInput node is configured with the WSDL.
- Select the Construction folder on the message flow palette to display the contents.
- Select a Trace node
and move the mouse to the right of the SOAPExtract node.
- Click the left mouse button to add the node to the message
flow. The name is selected automatically.
- Press Enter to accept the default name.
- Wire the submitPORequest terminal of the SOAPExtract node to the In terminal of the Trace node.
- Click the left mouse button to add the node to the message
flow.
- Select the Trace node
to display the properties.
- Use the menu to set Destination to
File
- Set the File path that you require.
- Enter the Pattern that you require.
- Use the menu to set Destination to
- Expand the Routing folder on the palette and select Filter.
- Add the Filter
node to the right of the Trace
node.
- Type the name for the node that you require and press Enter.
- Wire the Out terminal of the Trace node to the In terminal of the Filter node.
- Select the Filter node
to display the properties.
- Enter the Data source name that you require.
- Change the name of Filter expression to the name that you selected for the Filter node.
- Clear the Throw exception on database error check box.
- Double-click the Filter node
to open the ESQL editor. Create or change the ESQL for the node; for more information, see Creating ESQL for a node and Modifying ESQL for a node.
- Expand the Transformation folder on the palette and select a Mapping node.
- Add the Mapping node
to the right of the Filter node.
- Type the name for the node that you require and press Enter.
- Wire the True terminal of the Filter node to the In terminal of the Mapping node.
- Wire the Out terminal of the Mapping node to the In terminal of the Reply node.
- Select the Mapping node to display the properties, and change the name of the Mapping routine if required.
- Double-click the Mapping node
to open the mapping editor.
- Select submitPORequest as the map input.
- Select SOAP_Domain_msg as the map output.
- Click OK
For more information, see Creating a message map from a Mapping node.The created map provides the default mapping for the Message Assembly Properties. - Expand the SOAP_Domain_Msg then Body in the output pane.
- Right-click Wildcard Message in the output pane, then select submitPORequest on the input, and drag it to an element in the output below the body.
- Set the transform type to Submap and then, in the list of properties, click New.. to create the new submap.
- In the New Map wizard for the submap, select submitPORequest as the input, and select submitPOResponse as the output.
- Click OK to create the submap and enter the Graphical Data Mapping editor.
- Expand the submitPORequest input tree and the submitPOResponse output tree and wire the required transforms from the input elements to the output.
- Save the main map and the submap.