The TCP transport implementation is in the Apache WS-Commons Transports project. The two classes that act as the transport listener and the sender are org.apache.axis2.transport.tcp.TCPServer
and org.apache.axis2.transport.tcp.TCPTransportSender
respectively. In order to use the transport axis2-transport-tcp.jar
should be added to the Carbon classpath.
Transport
...
receiver parameters
Parameter Name | Description | Requried | Possible Values | Default Value |
---|---|---|---|---|
port | The port on which the TCP server should listen for incoming messages | No | A positive integer less than 65535 | 8000 |
hostname | The host name of the server to be displayed in WSDLs etc | No | A valid host name or an IP address |
|
Transport
...
sender parameters
The TCP transport sender does not accept any configuration parameters as of now.
...
If you wish to use the sample Axis2 client to send TCP messages, you have to uncomment remove the comment of the TCP transport sender configuration in the following file:
...