Customize SOAP Header namespace prefixes in WCF

人走茶凉 提交于 2019-12-05 10:18:50

The solution I found is to derive from MessageHeader class and use it in my custom Message class (see link from question to see how I used the custom Message class to customize the envelope and body start tag).

I will update the answer with a full example once it will be ready.

If you have different solutions for this, please post it as the simpler answer which works without breaking the functionality of wcf will be selected.

You could use a custom MessageEncoder and in the ReadMessage and WriteMessage methods you can do whatever you like with the xml.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!