IBM Integration Bus, Version 10.0.0.5 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Sending CWF data from a flat file to a TCP/IP client socket

Send Custom Wire Format (CWF) data from a flat file to a TCP/IP client socket, by the use of a message flow with FileInput and TCPIPClientOutput nodes.

About this task

Scenario: An application writes 100-byte binary records into a flat file.

Instructions: The following steps describe how to open a new client TCP/IP connection and send the binary data with a binary termination character x'00FF'. When the whole file is finished, the client connection is closed:

Procedure

  1. Create a message flow called TCPIP_Task5 with a FileInput node and a TCPIPClientOutput node. For more information, see Creating a message flow.
  2. Connect the Out terminal of the FileInput node to the In terminal of the TCPIPClientOutput node.
  3. Connect the End of Data terminal of the FileInput node to the Close terminal of the TCPIPClientOutput node.
    FileInput node connected to a TCPIPClientOutput node.
  4. Set the following properties of the FileInput node:
    1. On the Basic tab, set the Input directory property to c:\temp\task5.
    2. On the Records and elements tab, set the following properties:
      • Set the Record detection property to Fixed length.
      • Set the Length property to 100.
  5. Set the following properties of the TCPIPClientOutput node:
    1. On the Basic tab, set the Connection details property to 14145.
    2. On the Advanced tab, set the Close connection property to After data has been sent.
    3. On the Records and elements tab, set the following properties:
      • Set the Record definition property to Record is delimited data.
      • Set the Delimiter property to Custom delimiter (Hexadecimal).
      • Set the Custom delimiter property to 00FF.
  6. Save the message flow.

ac67460_.htm | Last updated 2016-06-25 08:07:19