This project is read-only.

How to Validate Outbound Messages on the Client

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

Implement the BeforeSendRequest method of the interface IClientMessageInspector of the message inspector to validate outbound messages on the client. This allows you to validate the message after serialization, but before sending the request to the service.
object IClientMessageInspector.BeforeSendRequest(ref System.ServiceModel.Channels.Message request, System.ServiceModel.IClientChannel channel)
    validateMessage(ref request);
    return null;

Additional Resources

Last edited Jun 13, 2008 at 9:11 PM by prashantbansode, version 1


No comments yet.