自定义 SOAP 标头与自定义 WCF 标头有何关系?

发布于 2024-08-17 18:08:00 字数 444 浏览 2 评论 0原文

我正在尝试将来自客户端(移动设备)的每条消息中的更多信息发送到我的服务。在我的研究中,我发现了关于 拦截器自定义 wcf 标头。

现在我开始看到有关 自定义 SOAP 标头的内容。

有什么区别?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伪心 2024-08-24 18:08:00

最后的结果是一样的。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文