简体   繁体   中英

How to log SOAP envelope from C# web service call?

Is there any way to get the SOAP envelope generated by .NET when calling a web service through a C# proxy class? I'm looking to get the SOAP envelope with all of the parameters defined in .NET, not a generic, blank SOAP envelope like SoapUI creates.

I usually just use fiddler to intercept the SOAP envelope. You need to specify the local Fiddler proxy (default localhost:8888) on the webservice class for that to work.

ws.Proxy = new System.Net.WebProxy("localhost", 8888);

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM