Search code examples
c#web-services

How do I capture incoming and outgoing xml when I call a web service


I am calling a third part web service from a windows application. I just tried to capture the xml response and request generated by that web service while I called it, but failed. While searching Google I found lots of articles, followed their instructions and code, but nothing works.

As examples of what I found, I followed these instructions and these.

Can anyone tell me any easy way to capture incoming and outgoing xml when I call and work with web service returning and accepting XML?


Solution

  • Using Fiddler or Wireshark you are able to capture http traffic on the client.

    I'm normally using Fiddler, it registeres as a proxy on the client so if the application is using the proxy settings defined in the Internet Options all traffic automatically shows up after starting Fiddler.