pass custom value in WCF context between IDispatchMessageInspector.AfterReceiveRequest and IClientMessageInspector.BeforeSendRequest -
I have a client WCF Service2 which is an ASP application that the client's WCF Service1,.
I have added IDispatchMessageInspector the WCF Servicel and IClientMessageInspector.
Now I need to pass WCF1, then WCF2 to pass a custom value from ASP.
ASP WCF1 from this minor thing, through message headers
The question is, how a custom IClientMessageInspector.BeforeSendRequest by WCF1 request the IDispatchMessageInspector.AfterReceiveRequest (ASP) WCF Service 1 to pass value (prepare to send request for WCF2)?
Is there a reference that can be used? Is
look
What is your address? Assuming that a request for the first Dispatch Message Inspector, WCF2 enough using just the message properties does a
However, its dispatch message inspectors, then. So the request continues and this is the service implementation which actually calls the WCF2, then you will need to jump through some more hoops. Normally, I want to say that you have the service request message properties that Service will require the inspector to put some data to copy to the message implementation will need to send WCF2 to customer inspector them You can not. That's ugly, and the little process will be more brittle. Can you tell in a little more detail what are you trying to do? What kind of data are you hoping to pass in this way?
Comments
Post a Comment