This post describes how to process binary data over TCP transport in WSO2 ESB.
- First we need to enable binary transport. Add following entries in ESB_HOME
- Now you need to add the message formatters and message builders to be used. Since we are using binary data, add following entry inside messageFormatters element.
Add following entry inside messageBuilders element.
- Now you can add a tcp proxy service to process the message. In that proxy service you need to add the same content type used in messageFormatter and messageBuilder configs. There are several other parameters specific to TCP proxies. Refer  for more info on that. Following is a sample proxy service that prints the binary message.
- Now you can invoke this proxy service using a sample TCP client. End of message should be marked with a "|" symbol in this particular proxy service.