Debugging Web Service Calls

 

Archived: April 13, 2007

Fiddler2 is a useful tool for debugging and capturing HTTP and HTTPS SOAP headers when making web service calls. Sometimes web service calls fail because the SOAP header was formed improperly. Each SOAP/XML tag is case sensitive, for example.

You can download Fiddler2 from here:

http://www.fiddler2.com/fiddler2/

There is one trick to get Fiddler2 to work, as mentioned at:

https://www.fiddler2.com/fiddler2/faq.asp

You may need to add the Fiddler cert to the Trusted Root Cert Folder. When you follow these instructions on the FAQ, you may see the cert located in the Personal cert folder. Just drag it into the Trusted folder.

Also, if you are debugging a .NET client and get the following exception: System.Net.WebException: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server, click Rules > Customize Rules. Scroll down to the OnBeforeResponse handler and uncomment as directed.

Happy debugging!

Jeff Dillon, Microsoft adCenter API Technical Support