wsHttpBinding 和 ws2007HttpBinding 有什么区别?

发布于 2024-07-14 03:13:44 字数 313 浏览 3 评论 0原文

在MSDN上我们可以读到:

WS2007HttpBinding 类添加了与 WSHttpBinding 类似的系统提供的绑定,但使用结构化信息标准促进组织 (OASIS) 标准版本的 ReliableSession、Security 和 TransactionFlow 协议。 使用此绑定时无需更改对象模型或默认设置。

但我没有找到任何文档可以解释为什么我想将 wsHttpBinding 移动到 ws2007HttpBinding,在我看来标准是相同的。

有人可以给我一个很好的解释吗?

On the MSDN we can read :

The WS2007HttpBinding class adds a system-provided binding similar to WSHttpBinding but uses the Organization for the Advancement of Structured Information Standards (OASIS) standard versions of the ReliableSession, Security, and TransactionFlow protocols. No changes to the object model or default settings are required when using this binding.

But I don't find any documentation which can explain me WHY I would like to move wsHttpBinding to ws2007HttpBinding, it seems to me that the standard are the same.

Can someone can give me a good explanation ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

嘿嘿嘿 2024-07-21 03:13:44

绑定支持不同的协议。 MSDN 上的此页面实际上有一个很好的矩阵,解释了支持哪些协议通过WCF中的绑定。 因此,如果您需要与实现 OASIS 协议的服务/客户端进行互操作,请使用 ws2007httpbinding 绑定,否则,没有理由不使用 wshttpbinding。

如果您想了解不同协议的详细信息,请查看他们的网站:WC3绿洲。 我确信有大量资源可以强调这些协议的差异。

不同的大型企业和政府需要使用Web服务并且有不同的要求。 因此,不同的标准是有道理的。

The bindings support different protocols. This page on MSDN actually has a nice matrix that explains what protocols are supported by which binding in WCF. So if you need interop with services/clients that implement OASIS protocols, use the ws2007httpbinding binding, otherwise, there's no reason to not use the wshttpbinding.

If you want to get into details of the different protocols, check out their websites: WC3 and OASIS. I'm sure there's tons of resources that highlight the differences in those protocols.

Different large enterprise and governments needs to use web services and have different requirements. Thus, different standards make sense.

燕归巢 2024-07-21 03:13:44

从 OReilly 的书“Programming WCF services”(第 28-29 页)中,他们说 Ws2007HttpBinding 派生自 WsHttpBinding。 它增加了对新兴标准的支持以及交易、安全性和可靠性标准的更新。

From OReilly book "Programming WCF services" (p.28-29) they say that Ws2007HttpBinding derives from the WsHttpBinding. It adds support for emerging standard and updates for the transaction, security and reliability standards.

我的痛♀有谁懂 2024-07-21 03:13:44

使用最新标准听起来是一个很好的做法,但请记住,只有运行至少 .NET 运行时版本 3.5 SP1 或 3.0 SP1 的客户端才支持 WS2007HttpBinding。

Using the lastest standard sounds like a good practice, but just keep in mind that WS2007HttpBinding is only supported by clients that are running at least .NET runtime versions 3.5 SP1 or 3.0 SP1.

他不在意 2024-07-21 03:13:44

OASIS定义的ws2007HttpBinding是比wsHttpBinding更新的版本。

它在 wsHttpBinding 的事务、可靠消息传递和 WS-Addressing 协议之上添加了 ReliableSession、Security 和 TransactionFlow 协议。

从简单的绑定开始可能会更容易,并且如果将来需要,您始终可以在与旧版本共存的新绑定中公开现有服务。

ws2007HttpBinding defined by OASIS is a newer version than wsHttpBinding.

It added ReliableSession, Security, and TransactionFlow protocols on top of Transactions, Reliable messaging, and WS-Addressing protocols of wsHttpBinding.

It could be easier to start with simple binding, and if required in the future, you can always expose the existing services in a newer binding coexisting with the older version.

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