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-time as the calls are happening. Is this possible?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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