开发者

WCF web service - how can I view XML request and response inside my app?

开发者 https://www.devze.com 2023-01-05 11:52 出处:网络
I am writing a C# WinForms application that consumes a web service us开发者_如何学Going WCF.I would like to be able to display the XML request and response in the application in real-time as the calls

I am writing a C# WinForms application that consumes a web service us开发者_如何学Going WCF. I would like to be able to display the XML request and response in the application in real-time as the calls are happening. Is this possible?


You would probably want to use / write a custom MessageInspector:

http://msdn.microsoft.com/en-us/library/aa717047%28v=VS.90%29.aspx

Another handy way to look at the raw communication is to enable tracing (but this would log the messages outside your application which might not suit your needs):

http://msdn.microsoft.com/en-us/library/ms733025.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号