Capturing Soap Message through Http Traffic (Web Services)


In this post i will to learn how to capture the Soap traffic communication of a Web Service.

I will cover two tools for this:

Suppose that i have my webservice running in this endpoint:

Solution 1) Using WireShark:

WireShark is a tool for capture packets from network where the computer is on. We will use this tool for capture our http packet with soap message.
For download this tool access here:

If you are in a Debian Linux just make it: sudo apt-get install wireshark

Obs.: In linux you should execute the wireshark as “sudo wireshark” for access the network.

Step 1) Install Wireshark
Step 2) Open wireshark and go to: Edit -> Preferences -> Protocols -> HTTP and put your port at TCP Ports. In our example is 9876. Click at OK
Step 3) Go to Capture -> Interfaces -> Click at Options in your correct network adapter -> And fill as below:

Just type the filter “xml” at filter box and click at Apply:

Right now, you shouls invoke the Web Service through your favorite Client. (SoapUI for example, or from your software, java, python, ruby and etc …)

Finally, you will see the two packet http (Request and Response):

You can see many informations such as packet size, your soap envelope and many many others.

Observation: Using WireShark you need to use the ip, not use localhost or because wireshark read the traffic when the message to come from other machine. So your client should be in other physical machine or other Virtual Machine works too

Solution 2: Using Apache TCPMON tool

The apache tcpmon is a tool that works like a proxy, your endpoint in your client should point to tcpmon and tcpmon point to your real webservice.

This tool is available here:

This is a tutorial for how to use it:

Observation: This tool works with localhost and

That is it. There is a lots of tool for capture packets and traffic Soa. These two is the most used for this proposit.

Victor Jabur.


11 thoughts on “Capturing Soap Message through Http Traffic (Web Services)

      1. Hi Victor , i want capture the soap requests coming from one application without using any tools ,is there any way to do ,if there can u please provide me the solution for that

  1. Hi, is possible capture SOAP messages in OSB (weblogic) without external tools, only changing the configuration of OSB or anything similar.

  2. how is it possible to filter packets on a SOAP UI. A mock service is up and running and an application sends a payload to the mock service. I want to filter the packets coming on the SOAP UI. How can this be done?

    1. Hello,

      Wireshark is a famous software to sniff network packages. With it, you can record all the conversation between your machine (SoapUI) and the Osb Server. If booth them are in the same machine, then you can record through loopback network interface and you will able to see the communication, including Soap Envelope.
      Add me on Hangouts if you need some help.
      Thank you

  3. Nice article. If you expand the eXtensible Markup Language and right click on “eXtensible Markup Language” and select Copy > All Visible Selected Tree Items then you can copy the XML message.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s