basicHttpBinding 与 wsHttpBinding

发布于 2024-08-18 18:52:55 字数 69 浏览 3 评论 0原文

在 WCF 端点中,basicHttpBinding 和 wsHttpBinding 之间有什么区别?每种应该什么时候使用?

In a WCF endpoint, what is the difference between basicHttpBinding and wsHttpBinding? When should each be used?

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

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

发布评论

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

评论(2

呆° 2024-08-25 18:52:55

那里有大量的材料 - 只需谷歌搜索“WCF basicHttpBinding wsHttpBinding”。

您会发现:

非常基本:

  • basicHttp 是 SOAP 1.1,wsHttp 是 SOAP 1.2(它们非常不同,尤其是在涉及 SOAP 错误时)
  • basic 是 - 非常基本。它与旧式 ASMX ASP.NET Web 服务和几乎任何其他 Web 服务堆栈兼容,
  • 其安全设置基本非常有限
  • wsHttp 是无数 WS-* 标准的实现,并提供更多功能:安全、可靠消息传递、事务支持、双工通信和整个主机更多。
  • wsHttp 是更“重”且更广泛的协议,兼容性较差,灵活性较差

Ton of material on that out there - just google for "WCF basicHttpBinding wsHttpBinding".

You'll find amongst others:

Very basically:

  • basicHttp is SOAP 1.1, wsHttp is SOAP 1.2 (they're quite different, esp. when it comes to SOAP faults)
  • basic is - very basic. It's compatible with old-style ASMX ASP.NET webservices and just about any other web service stack out there
  • basic is very limited in its security settings
  • wsHttp is an implementation of a gazillion WS-* standards, and offers much more features: security, reliable messaging, transaction support, duplex communications and a whole host more.
  • wsHttp is the much "heavier" and more extensive protocol, less compatible, less nimble
呆头 2024-08-25 18:52:55

wsHttpBindingbasicHttpBinding 更安全、更可靠。如果不需要很好的兼容性,可以选择wsHttpBinding。

参考: BasicHttpBinding 与 WSHttpBinding

BasicHttpBinding

  1. WS-I Basic Profile 1.1 规范(旧 ASMX 样式)
  2. 它支持 SOAP 1.1 作为消息传递协议
  3. 不支持 WS-Security,并且发送整个有效负载以纯文本形式。
  4. 提供高水平的互操作性。

WSHttpBinding

  1. 允许您使用各种 WS-* 规范,例如 WS-Security 1.1、WS-Reliable Messaging 等
  2. 它支持 SOAP 1.2 作为消息传递协议
  3. 由于它是使用 WS-* 规范构建的,因此它不支持支持更广泛的客户。

wsHttpBinding is more secure and reliable than basicHttpBinding. If great compatibility is not required, wsHttpBinding is the choice.

Ref: BasicHttpBinding vs WSHttpBinding

BasicHttpBinding:

  1. WS-I Basic Profile 1.1 specification (Old ASMX style)
  2. It supports SOAP 1.1 as a messaging protocol
  3. Doesn’t support WS-Security, and the entire payload is sent in plain text.
  4. Offers great level of interoperability.

WSHttpBinding:

  1. Allows you to use various WS-* specifications such as WS-Security 1.1, WS-Reliable Messaging etc
  2. It supports SOAP 1.2 as a messaging protocol
  3. As its built using WS-* specifications, it does not support wider ranges of client.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文