I have a C# ASP.NET application that is sending a post request to a WSDL based SOAP client and I would like to see the body of that request. The request is sent from the backend, not a browser. Plot twist: I lack permissions to install any network traffic sniffing software. What is a good way to see the XML being sent in the request? I am using visual studio 2010.
Can you modify the application? If so, a couple thoughts:
or
or
Can you install any software? If so give fiddler a try, it's an http debugging proxy that does not require admin rights to install.
Without installing any software this question, specifically this answer looks like it would do the trick. It contains the configuration to enable the System.Net tracing mechanism in the web.config.
For an auto generated client from a service reference one of the answers to this question should work. It's very similar to the answers above but specifically for a client generated from a service reference.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.