Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-users: [Wireshark-users] Display XML content in a SOAP communication

From: Enrique Roman <bousmart@xxxxxxxxxxx>
Date: Tue, 4 Dec 2007 20:19:46 -0600
Hello all,
 
I have a SOAP client application that attempts to invoke a method from a remote web service, but the communication fails as a CORBA exception is thrown.
 
I'm trying to use WireShark to obtain the XML trace that is sent to the server to verify whether its formatted in an appropriate manner or not (review the encoding type, namespace, etc). My intention is to get this kind of information:
 
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:types="http://tempuri.org/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:HelloWorld><name xsi:type="xsd:string">John</name></tns:HelloWorld></soap:Body></soap:Envelope>
 
---------------------
 
>From what I understand this is possible with WireShark using "Follow TCP stream" but I just can't find it anywhere. Instead I only get this information:
 
GET /hp/device/hp.SoapClient?HelloWorld=html&name=John&host=&port=&Greet+me%21=Greet+me%21 HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://10.10.102.134/my.SoapClient
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: 10.10.102.134
Connection: Keep-Alive
Authorization: Basic OmFzY2k=

HTTP/1.1 200 OK
TRANSFER-ENCODING: chunked
SERVER: HP-ChaiSOE/1.0
-ONNECTION: Keep-Alive
195
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>SOAP Client</title>
</head>
<center><p><h1>
SoapClient ChaiService</h1></p>
<hr><p>
<p><h2>
Hello John</h2></p>
<hr></center><a href=""> About</a></body></html>
0
 
-------------------------------
 
What do I need to do to get the whole XML envelope and body information?
 
I'm using the latest version of the software available: version 0.99.6a.
 
Any help is highly appreciated!
 
Thanks!
 
Enrique


Explore the seven wonders of the world Learn more!