Transferring XML data from a TCP/IP server socket to an IBM MQ queue

Transfer XML data from a TCP/IP server socket to an IBM® MQ queue, by creating a message flow with TCPIPServerInput and MQOutput nodes.

About this task

Scenario: A client application opens a TCP/IP socket and sends an XML document. The end of the document is signalled by the closure of the client connection.

Instructions: The following steps describe how to write a message flow that can receive the XML document and write it to an IBM MQ queue:

Procedure

  1. Create a message flow called TCPIP_Task1 with a TCPIPServerInput node and an MQOutput node.
    For more information about how to do this, see Creating a message flow.
  2. Connect the Out terminal of the TCPIPServerInput node to the In terminal of the MQOutput node.
    TCPIPServerInput node connected to an MQOutput node.
  3. Set the following properties of the TCPIPServerInput node:
    1. On the Basic tab, set the Connection details property to 14141.
    2. On the Input Message Parsing tab, set the Message domain property to XMLNSC.
  4. On the MQOutput node, set the Queue name property (on the Basic tab) to TCPIP.TASK1.OUT1.
  5. Save the message flow.