Configuring a server socket to receive XML data and discover the end of a record (by using the message model)

Configure a server socket to receive XML data and use the message model to determine the end of a record, by the use of a message flow with TCPIPServerInput and MQOutput nodes.

About this task

Scenario: A client application sends an XML document with no clear indication of the end of the record.

Instructions: The following steps show how to break up the record by the use of the XML parser to signal when the whole XML document as been received. The parser uses the end XML tag to signal the end of the message.

Procedure

  1. Create a message flow called TCPIP_Task12 with a TCPIPServerInput node and an MQOutput node.
    For more information, 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 14151.
    2. On the Input Message Parsing tab, set the Message domain property to XMLNSC.
    3. On the Records and elements tab, set the Record detection property to Parsed record sequence.
  4. On the MQOutput node, set the Queue name property (on the Basic tab) to TCPIP.TASK12.IN1.
  5. Save the message flow.