开发者

In WCF, how can I modify operation results before the serialization process?

I want to modify all of the operation results before the serialization for security purposes. I have some options:

I don't want to process raw message, I want to use reflection. Are there any alternative ways?

Thank you.


  • Write a wrapper method that wraps around the results of this processor method
  • Insert a custom HTTP or SOAP header in the outgoing message, and watch out for the header in the message encoder, error handler, or message inspector
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜