how to put inspector on both client and server WCF RRS feed

  • Question

  • i heard that it is possible to to put inspector on both client and server wcf side which can intercept the message and modify it's content before it released to the client/server. i want to know is it possible if yes then how?

    how could i encrypt/decrypt data with our own logic at both end when data just passed. i search Google to have some good write up on this topic but unfortunately i got none. so if anyone knows about any url which discuss how to develop this kind of inspector and deploy at both wcf client & server then please share with me. thanks

    Wednesday, April 2, 2014 9:08 AM


  • A message inspector is an extensibility object that can be used in the service model's client runtime and dispatch runtime programmatically or through configuration and that can inspect and alter messages after they are received or before they are sent.

    Refer Article

    the article gives you detail how to use

    IClientMessageInspector for the client side Message Inspector;

    IDispatchMessageInspector for the server side Message Inspector


    Mohit Gupta

    • Marked as answer by Mou_kolkata Wednesday, April 2, 2014 1:49 PM
    Wednesday, April 2, 2014 10:09 AM