Implement AfterReceiveReply Method to Validate Inbound Messages on the Client

- J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

If you need to perform validation on client of inbound messages, implement the AfterReceiveReply of the interface IClientMessageInspector of the message inspector. This will validate the message after client response has arrived and before deserialization and returning the data to the client application.

Following example shows how to implement the AfterReceiveReply method.
void IClientMessageInspector.AfterReceiveReply(ref System.ServiceModel.Channels.Message reply, object correlationState)
 {
     validateMessage(ref reply);               
 }

Additional Resources

Last edited Jun 12, 2008 at 10:18 PM by prashantbansode, version 1

Comments

No comments yet.