Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML From a Web Service Call

Visual Studio makes calling a web service easy, trying to figure out what is going on under the covers is difficult.

How can I see the actual XML generated from my .Net app when making a call to a web service?

like image 581
TGnat Avatar asked Oct 15 '08 17:10

TGnat


People also ask

How XML is used in web services?

Web Services take Web-applications to the Next Level By using Web services, your application can publish its function or message to the rest of the world. Web services use XML to code and to decode data, and SOAP to transport it (using open protocols).

Is XML a component of web service?

Web services are built on top of open standards such as TCP/IP, HTTP, Java, HTML, and XML. Web services are XML-based information exchange systems that use the Internet for direct application-to-application interaction.

Is an XML-based protocol for accessing web services?

SOAP is an acronym for Simple Object Access Protocol. SOAP is a XML-based protocol for accessing web services. SOAP is a W3C recommendation for communication between applications.

Is WSDL XML?

WSDL is an XML notation for describing a web service. A WSDL definition tells a client how to compose a web service request and describes the interface that is provided by the web service provider.


2 Answers

tools like tcptrace or Fiddler can help.

few troubleshooting links:

Tracing WCF with TcpTrace

Using Fiddler and Excel 07 to debug web services

Fiddler Can Make Debugging Easy

like image 59
Gulzar Nazim Avatar answered Nov 03 '22 01:11

Gulzar Nazim


MSDN Example code that implements a TraceExtension for SOAP; You can use as-is or modify to log in whatever you want (I used a DB and kept it not only for debugging but to archive all communication for later on).

like image 27
Chris Shaffer Avatar answered Nov 03 '22 00:11

Chris Shaffer