Im using a WCF service and WSDL objects to build the body. I need to capture the SOAP meassage body request/response. I don't need to edit the message just take a peek or save/log it.
I have tried using the WCF message logging as per here: http://msdn.microsoft.com/en-us/library/ms730064.aspx
And using the Microsoft service trace viewer, this, however, is only showing me the headers etc. regardless of the settings I use.
Have also tried to use fiddler, which again seems to ignore the request body.
So... do I need to do something like what is outlined here: How do I get the XML SOAP request of an WCF Web service request?
The trace viewer looks good & I was hoping I could capture the whole message including the body using this.
For standard WS services I have used a listener as outlined here: http://blog.encoresystems.net/articles/how-to-capture-soap-envelopes-when-consuming-a-web-service.aspx
This works exactly as I wan't and can be switched on/off via the app.config