`

Apache TCPMon

    博客分类:
  • Java
 
阅读更多

Introduction

TCPMon is a utility that allows the user to monitor the messages passed along in TCP based conversation. It is based on a swing UI and works on almost all platforms that Java supports. The aim of this simple tutorial is to explain how TCPMon works and also to explain some of its features.

Structure and Dependencies

TCPMon has absolutely no dependencies on third party libraries. But some of the UI features rely on JDK 1.4 so TCPMon needs a JRE that is 1.4 or higher.

Usage Patterns

As an Explicit Intermediate

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

concept

In order to start the TCPMon in this configuration one has to provide the host name and the port for the listener in the admin screen. See image below.

first screen

Pressing the 'add' button opens up a new tab that allows the messages to be seen as in the following screen

message screen

At this point the requester should point to the listener port of the TCPMon instead of the original endpoint. Let us understand this with an example:

Say all messages passed between www.apache.org needs to be monitored.

Step 1 - Add a listener with host as www.apache.org and port as 80. Set the listener to port 8080 which may be any unused port in the local machine

the settings

Step 2 - Point the browser to localhost:8080 instead of www.apache.org.

browser address bar

Once the messages start flowing they can be seen in the relevant tab as seen below.

Filles screen

The bottom controls allow the messages to be XML formatted (useful in debugging Web services), save and resend the messages, and also to switch the layout of the message windows.

button set

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 then sent directly to the server.

request sender

As a Proxy

TCPMon can act as a proxy. To start the TCPMon at proxy mode, just select the proxy option from the radio buttons. When acting as a proxy, TCPMon only needs the listener port to be configured.

proxy

Advanced Settings

Slow Connection Simulation

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

slow-connection

HTTP Proxy support

If HTTP proxy support is required then that can also be set on the admin screen.

Conclusion

TCPMon is a simple and easy to use tool that has many benefits when developing message driven applications. It is particularly useful in developing Web services

分享到:
评论

相关推荐

    XFire + Apache TCPMon + Apache jemeter

    标题中的“XFire + Apache TCPMon + Apache jemeter”提到了三个重要的IT工具,它们在软件开发和性能测试领域有着重要应用。接下来,我们将详细探讨这三个工具以及它们在实际工作中的用途。 **XFire**: XFire是一款...

    apache tcpmon 1.0

    Apache TCPMon是一款由Apache软件基金会开发的网络诊断工具,主要用于帮助开发者在开发和调试基于SOAP(Simple Object Access Protocol)的应用程序时,捕获和监控TCP网络通信数据。它的工作原理是作为一个中间代理...

    tcpmon-1.0-bin.zip_tcpmon_tcpmon download_tcpmon-1.0-bin_tcpmon-

    TCPMon是一款由Apache组织开发的网络调试工具,主要用于监控HTTP协议的通信过程。它能够帮助开发者深入了解客户端与服务器之间的交互细节,特别是在处理SOAP(简单对象访问协议)服务时,TCPMon能够提供有价值的诊断...

    监控工具TCPMon软件和使用说明

    1. **下载和安装**:从Apache官方网站或者可靠的源获取TCPMon的最新版本,解压缩文件,通常包含一个可执行文件。 2. **运行TCPMon**:启动TCPMon应用程序,界面将显示主要的配置选项。 3. **配置端口**:在"Local ...

    tcpmon-1.0-bin

    Tcpmon作为apache的一个独立项目,我们可以通过tcpmon来查看用户访问网站的http交互过程及传输内容,当然对于基于http协议的 SOAP客户端和SOAP服务端之间的传递的XML也可以方便查看了,包含request和response ...

    tcpmon-1.0.jar

    tcpmon,对webserivice信息进行拦截,方便开发调试,是一款好工具。

    tcpmon 1.1 端口转发工具,最新版

    tcpmon 1.1 端口转发工具,最新版 这是zip 压缩包,要解压后,运行里面的jar包, 前提条件,需要装java运行环境。 我搜索很多,且下载很多,这个亲测可用,且是最新版本 一般直接双击jar包即可运行,如果实在不行...

    tcpmon工具监听webservice

    TCPMon是一款轻量级的网络监控工具,由Apache软件基金会开发,主要用来监控HTTP和HTTPS协议的通信。在Web服务开发和调试过程中,TCPMon扮演了重要的角色,它可以帮助开发者查看客户端与服务器之间的交互数据,包括...

    tcpmon-1.0-bin.rar

    This is TCPMon 1.0 release of the Apache WS-Commons. TCPMon is a tool that can be used to monitor messages of TCP based protocols. It is based on swing andruns on almost all the platforms that Java ...

    tcpmon,webservice抓包工具

    1. **下载和安装**:首先,你需要从Apache官方网站或者相关的镜像站点下载TCPMon的压缩包,如`tcpmon-1.0-bin`。解压后,你将得到可执行的jar文件。 2. **运行TCPMon**:在命令行中输入`java -jar tcpmon-x.x.jar`...

    监听调试web service的好工具TCPMon

    TCPMon是一款由Apache基金会开发的开源工具,它允许开发者在客户端和服务端之间透明地插入,以便观察和分析两者之间的通信数据。这个工具对于理解Web服务的工作原理、调试SOAP请求和响应、检查网络通信细节等具有...

    DonsProxy-开源

    捕获,分析,修改,复制您的应用程序的TCP通信。 模拟慢速和不可靠的网络。 比Apache TCPMon更强大,并且比Shunra Cloud更便宜。 您最终可以看到您的SOAP服务正在通过HTTPS发送什么!

    tcp 端口监听器 使用教程

    TCPMon 的下载地址在 http://ws.apache.org/commons/tcpmon/download.cgi,下载后会得到一个 tcpmon-1.0-bin.zip 的包,解开后进去\tcpmon-1.0-bin\build 目录,双击tcpmon.bat 就可以执行程序了。 TCPMon 的配置...

    topmon1.1 webservice监控工具

    TCPMon是Apache软件基金会的一个独立项目,它作为一个轻量级的网络监控工具,主要用于调试HTTP和HTTPS协议。在Web服务开发和测试过程中,TCPMon扮演了重要的角色,帮助开发者观察和分析客户端与服务器之间的通信情况...

    AXIS2 RCP/literal样式,两种MESSAGE定义方式SOAP的payload

    AXIS2 RCP,全称为Axis2 Remote Client Protocol,是Apache Axis2框架的一部分,用于构建分布式Web服务客户端。在处理SOAP(Simple Object Access Protocol)消息时,Axis2 RCP提供了不同的方式来定义消息的payload...

    几种监控SOAP消息的方法

    2. **TCPMon**: TCPMon 是一个轻量级的工具,由Apache Axis项目提供,用于监视HTTP和HTTPS请求。它允许用户查看客户端和服务器之间的交互,包括SOAP消息。在提供的压缩包中,`tcpmon.bat`可能是TCPMon的启动脚本,而...

Global site tag (gtag.js) - Google Analytics