开发者

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

开发者 https://www.devze.com 2023-02-01 08:44 出处:网络
I want to modify all of the operation results before the serialization for security purposes. I have some options:

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

精彩评论

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