Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Users can view and monitor the messages passed along in a TCP-based conversation, using the TCPMon utility in the WSO2 Carbon base platform. TCPMon is a simple and easy-to-use tool, particularly useful when developing Web services. It is based on a swing UI and works on almost all platforms that support Java. You can find the script file used to run this tool by the name tcpmon.sh or tcpmon.bat in the <PRODUCT_HOME>/bin folder. TCPMon needs JRE 1.4 or higher to run and has no dependencies on third-party libraries.

Usage

...

patterns of the

...

tool

As an

...

explicit intermediate

The most common usage of TCPMon is as an intermediary. It is called explicit since the client has to send the messages to the intermediary rather than to the original endpoint in order to monitor the messages. The following figure explains this concept.

...

The options at the bottom of the screen can be used to have the messages in XML format (useful in debugging Web services), save and resend the messages and also to switch the layout of the message windows.

As a

...

request sender for web services

TCPMon can also be used as a request sender for Web services. The request SOAP message can be pasted on the send screen and sent directly to the server.

As a

...

proxy

TCPMon can act as a proxy. To start it in proxy mode, select the Proxy option. When acting as a proxy, TCPMon only needs the listener port to be configured.

Advanced

...

settings

TCPMon can simulate a slow connection, in which case the delay and the bytes to be dropped can be configured. This is useful when testing Web services.

...