1

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?

benvdh
  • 454
  • 5
  • 13
Thomas
  • 33,544
  • 126
  • 357
  • 626

1 Answers1

3

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.

Daniel Calliess
  • 861
  • 6
  • 12
  • when i am calling 3rd part web service from our win apps then how can i view request/response xml by fiddler or wireshark. – Thomas Nov 07 '12 at 14:51
  • what was the wrong in my approach which i followed. can't we programmatically capture incomming/outgoing xml from web service client end.looking for suggestion. – Thomas Nov 07 '12 at 14:52
  • Capturing with Fiddler doesn't depend on wheather it's a first, second or third party application. You only need to ensure that the client sends http requests via the proxy provided by Fiddler. If you want to *programmatically* trace these requests you should have a look at the link provided by L.B. as comment to your question. Fiddler also supports FiddlerScript to modify requests/responses, filtering etc. – Daniel Calliess Nov 07 '12 at 15:00