This sample will show you,How to use

IParameterInspector

BehaviorExtensionElement

IDispatchMessageInspector

IClientMessageInspector

IEndpointBehavior

http://blogs.msdn.com/madhuponduru/attachment/671922.ashx