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

后端 未结 1 1673
傲寒
傲寒 2020-12-22 03:13

I am writing a C# WinForms application that consumes a web service using WCF. I would like to be able to display the XML request and response in the application in real-tim

相关标签:
1条回答
  • 2020-12-22 03:31

    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 讨论(0)
提交回复
热议问题