I've got a basis WinForms test harness that's implementing a WCF client (.NET 3.5) which calls a SOAP web service. I need to be able to write the HTTP request and response and output the two XML documents so I can load them back into WebBrowser controls on the form.
It looks like the way to accomplish this is to implement a custom IClientMessageInspector and an IEndpointBehavior, apply the behavior to the binding and then do the work of capturing the XML inside AfterReceiveReply and BeforeSendRequest (inside IClientMessageInspector implementation).
So my questions are:
1. This seems like a rather exhaustive process, is there a more straightforward approach to doing this?
2. If I am on the right path, does anyone have links to related articles/code samples related to this?
3. In what I have coded so far, I am held up trying to get the behaviorExtension to register properly (inside app.config), it looks as if I must register my classes that implement behavior Extenshions in the GAC in order to make use of them, is this true?
Thanks in advance for taking time away to help a fellow developer!
View Complete Post