Browsing All posts tagged under »IClientMessageInspector«

IClientMessageInspector – How to inspect and modify the message?

March 29, 2011 by

2

IClientMessageInspector allows to inspect or modify SOAP messages on the client side. Here are some examples of usage for this extensibility point: Message Validation – Ensure the message is compliant with a certain schema Validate its content or headers Logging or Tracing Manipulating the Message (For example: manipulate its headers) Note: Parameters validation is done […]

Catching the real exception …

January 4, 2011 by

2

In the previous post (see whose-fault-is-it), I mentioned that there is a trick you can implement in order to enable your clients catch the exact exception thrown by the server instead of the generic FaultException. This contradicts the WCF pattern according to which the client should catch only FaultExceptions. The reason WCF promotes catching generic […]