This documentation is for WSO2 Enterprise Service Bus version 4.8.1 . View documentation for the latest release.

All docs This doc
Skip to end of metadata
Go to start of metadata

The TCP transport allows you to send and receive SOAP messages over TCP. The TCP transport is included with the WSO2 ESB distribution but must be enabled before use. To enable the TCP transport, open the <ESB_HOME>/repository/conf/axis2/axis2.xml file in a text editor and add the following transport receiver configuration and sender configuration:

<!-- Enable TCP message -->  
<transportReceiver name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportListener">
    <parameter name="transport.tcp.port">6060</parameter>

<transportSender name="tcp" class="org.apache.axis2.transport.tcp.TCPTransportSender"/>

If you want to use the sample Axis2 client to send TCP messages, uncomment the TCP transport sender configuration in the following file:


Transport receiver parameters

Parameter Name



Possible Values

Default Value


The port on which the TCP server should listen for incoming messages


A positive integer less than 65535



The host name of the server to be displayed in WSDLs, etc.


A valid host name or an IP address


For more information, see Working with Transports.

  • No labels