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 a test message called execution-report-b5.bin.
Running the sample
To run the sample, you must put messages on the input queues, and get messages from the output queues. Follow the instructions below:
- Put the execution-report-b5.bin test message on the FIX_TO_XML_IN queue using the Enqueue editor:
- Click File > New > Message Enqueue File.
A new enqueue file is created and opens in the Enqueue editor.
- In the Queue manager name field, type WBRK6_DEFAULT_QUEUE_MANAGER.
- In the Port field, type 2414.
- In the Queue name field, type FIX_TO_XML_IN
- Click Browse, then navigate to the execution-report-b5.bin test message. Click OK.
- Click Write To 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:
- If the message is a valid FIX message, it is passed to the Compute node which converts the FIX message to an XML message. The Compute node then passes the message to the FIX_TO_XML_OUT MQOutput node which puts the message on the FIX_TO_XML_OUT queue.
- If the message is not a valid FIX message, the message is passed to the FIX_FAIL node, which puts the message on the FIX_FAIL queue.
- Get the transformed message from the FIX_TO_XML_OUT queue using the Dequeue Message dialog:
- Click Get a message from a Queue on the toolbar.
- In the Dequeue Message dialog, enter the connection details, and in the Queue name field, type FIX_TO_XML_OUT.
- Click Read From Queue. The transformed message is displayed in the Dequeue Message dialog. The message is now in XML format.
- Click Save As.... Browse to the location where you want to save the message, enter a file name, then click Save.
- Put your saved message from step 2 on the XML_TO_FIX_IN queue using Enqueue editor.
- Click File > New > Message Enqueue File.
A new enqueue file is created and opens in the Enqueue editor.
- In the Queue manager name field, type WBRK6_DEFAULT_QUEUE_MANAGER.
- In the Port field, type 2414.
- In the Queue name field, type the name of the desired queue.
- Click Browse, then navigate to the location of your saved message from step 2 and click OK.
- Click Write To queue.
When you put the message on the XML_TO_FIX_IN queue, the XML_TO_FIX_IN MQInput node in the second message flow (called VALIDATINGXML2FIX.msgflow) parses the message and validates it against the message set:
- If the message is a valid XML message, it is passed to the Compute node which converts the XML message to a FIX message. The Compute node then passes the message to the XML_TO_FIX_OUT MQOutput node which puts the message on the XML_TO_FIX_OUT queue.
- If the message is not a valid XML message, the message is passed to the FIX_FAIL node, which puts the message on the FIX_FAIL queue.
- Get the message from the XML_TO_FIX_OUT queue. The message is now a FIX message.
If there is no message on the FIX_TO XML_OUT or XML_TO_FIX_OUT queues, see Diagnosing problems. 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