Saving xml from web service calls in .net.

While working on some some web service calls at work I ran into a situation where I needed to record the XML that was being passed from both sides. After doing some Google searching I came across the following code on Microsoft’s site.

Essentially this code hooks into the base web service code and saves the XML that flows through the service. To get it working though you’ll need to add the following to your web.config or app.config file.

Mike GriffithSaving xml from web service calls in .net.