自定义 SOAP 标头与自定义 WCF 标头有何关系?
I am trying to send more info in each message from the client (Mobile Device) to my service. In my research I am finding about interceptors and custom wcf headers.
Now I am starting to see stuff about custom SOAP headers.
What is the difference?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后的结果是一样的。 WCF 为您提供了采取不同路径到达目的地的选项。使用消息契约可以让您明确控制消息的形成方式和标头和正文中包含的内容。
如果您已经定义了数据协定,则 其他方法将允许您将标头添加到现有的消息结构中。
In the end, the result is the same. WCF provides you the option of taking different paths to get there. Using message contracts gives you explicit control over how your messages are shaped and what is contained in the header and the body.
If you already have defined data contracts, then the other approach will allow you to add headers to your existing message structure.