c# - Copy the RequestMessage at IParameterInspector.BeforeCall() on WCF Service -


I have a WCF service with the IParameterInspector class that stores the message for each incoming message I assume that I need to remove the values ​​from the input parameters.

I'm trying to get the message

Blockquite Operation Context. Present. File request Request Message Blockquite

and call to create CreateBufferedCopy () method to make a copy so that I can work in the message (read) and send it forward, But I am receiving the following error:
"This message can not support operation because it has been read."

Any thoughts? thanks a lot!

IParameterInspector is removed followed by The message is read by the contract / XML serializer so that the message body can be eaten in advance.

If you want to receive raw input messages, then you should do so by creating IDispatchMessageInspector instead of the message so you can still cross it under the WCF pipeline. .


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -