Building the logger message flow

This is the second of a set of instructions on setting up your system to use WS-Addressing with IBM® App Connect Enterprise, and illustrates the use of a reply being sent to an address other than the originating client.

About this task

This topic describes the construction of a sample logger message flow when using WS-Addressing. This flow echoes back the input while creating a trace entry in a file to indicate that the flow has been invoked.

Procedure

  1. Switch to the Integration Development perspective.
  2. Select the message flow name that you used in Building the main message flow
  3. Press the right mouse button and select New->MessageFlow.
    1. Enter the name that you require for this message flow; for example, Logger.
    2. Press Finish to create the flow.
  4. Select the HTTP folder on the message flow palette to display the contents.
  5. Select an HTTPInput node and move the mouse to the left side of the canvas.
    1. Click the left mouse button to add the node to the message flow and enter the name Logger.
    2. Press Enter to finish.
  6. Select the HTTPReply node from the palette and move the mouse to the right of the HTTPInput node, leaving room for a node in between.
    1. Click the left mouse button to add the node to the message flow and enter the name that you require; for example, Logger.
    2. Press Enter to finish.
  7. Select the Construction folder on the message flow palette to display the contents.
  8. Select a Trace node and move the mouse to the right of the HTTPInput node.
    1. Click the left mouse button to add the node to the message flow and enter the name that you require; for example Trace.
    2. Press Enter.
    3. Wire the out terminal of the HTTPInput node to the In terminal of the Trace node.
    4. Wire the out terminal of the Trace node to the In terminal of the HTTPReply node.
  9. Select the HTTPInput node to display the properties.
    In the Basic tab:
    1. Enter the Data source name that you require.
    2. Change the name of the input node Logger as the Path suffix for URL.
  10. Select the Input Message Parsing tab and select XMLNSC as the Message domain.
  11. Select the Trace node to display the properties.
    1. Set Destination to File
    2. Set the File path that you require.
    3. Enter the Pattern that you require.
  12. Save the message flow.