Running the FIX sample

This topic explains how to put the test messages through the FIX message flow.

The input message

The FIX sample contains the following two test messages:

The first input message is a FIX message, which will be converted to an XML message. The second is an XML message that will be converted to a FIX message.

Running the sample

To run the sample, you must put messages on the input queues, and get messages from the output queues. You can use the Dequeue section of the Test Client to retrieve the messages from the output queues. If the message is not on the output queue that you expect, change the name of the output queue to the name of the failure queue. Use the following instructions to run the sample:

  1. Put the FIX test message on the FIX_TO_XML_IN queue by using the Test Client:
    1. In the Broker Development view, expand the FIX Message Flows project.
    2. Double-click the FIXtoXML.mbtest file to open it in the Test Client.
    3. In the Test Client click Enqueue.
    4. In the Message Body list, select Import from external file.
    5. In the FIX Message Flows directory in your workspace, navigate to the execution-report-b5.bin test message, and select it. Click OK. Note that the text from the external file is not displayed in the editor.
    6. Click Send Message. The message in the .mbtest file is written to the queue.

    When you put a message on the FIX_TO_XML_IN queue, the FIX_TO_XML_IN MQInput node in the first message flow (called VALIDATINGFIX2XML.msgflow) parses the message and validates it against the message set:

  2. Get the transformed message from the FIX_TO_XML_OUT queue by using Dequeue:
    1. In the Test Client, click Dequeue.
    2. Click Get Message to read the transformed message from the FIX_TO_XML_OUT queue.
  3. Put the XML test message on the XML_TO_FIX_IN queue using the Test Client:
    1. In the Broker Development view, expand the FIX Message Flows project.
    2. Double-click the XMLtoFIX.mbtest file to open it in the Test Client.
    3. In the Test Client, click Enqueue.
    4. Click Send Message. The message in the .mbtest file is written to the queue.

    When you put a message on the XML_TO_FIX_IN queue, the XML_TO_FIX_IN MQInput node in the first message flow (called VALIDATINGXML2FIX.msgflow) parses the message and validates it against the message set:

  4. Get the transformed message from the XML_TO_FIX_OUT queue by using Dequeue:
    1. In the Test Client, click Dequeue.
    2. Click Get Message to read the transformed message from the XML_TO_FIX_OUT queue.

If there is no message on the FIX_TO XML_OUT or XML_TO_FIX_OUT queues, see Resolving problems when running samples in the WebSphere Message Broker documentation. The message might still be on the input queue, or it might be on the FIX_FAIL queue, or on one of the system queues.

Back to sample home