Windows 通信基础 (WCF)

发布于 2024-08-08 02:00:24 字数 41 浏览 1 评论 0原文

当 Web 服务 (ASMX) 存在时,为什么我们还要使用 WCF?

Why we are going for WCF when web services (ASMX) exist ??

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

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

发布评论

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

评论(4

你丑哭了我 2024-08-15 02:00:24

这是一篇不错的文章,您可以查看

Comparing ASP.NET Web Services to WCF基于开发

Here is a nice article that you can look at

Comparing ASP.NET Web Services to WCF Based on Development

薄荷港 2024-08-15 02:00:24
  • WCF 支持超出 HTTP 的协议(例如 TCP 和 MSMQ)和超出 XML 的消息格式,因此它可以用于它们不适合的任务,例如因为这些任务需要更好的性能。
  • WCF 可以自托管,因此无需在 IIS 中托管。
  • WCF 支持在调用之间保留服务对象状态。
  • WCF supports protocols beyond HTTP (TCP and MSMQ come to mind) and message formats beyond XML, so it could be used for tasks they are unsuitable e.g. because these tasks require better performance.
  • WCF could be self-hosted so no need for hosting in IIS.
  • WCF supports preserving service object state between calls.
乖乖公主 2024-08-15 02:00:24

另一个相当有趣和深思熟虑的比较:

http ://www.keithelder.net/blog/archive/2008/10/17/WCF-vs-ASMX-WebServices.aspx

下载 PowerPoint 并查看 - 另外,观看 Keith 的 DotNetRocks TV 亮相,通过精彩的截屏视频介绍了 WCF 及其相对于 ASMX 的优势。

马克

Another rather interesting and thoughtful comparison:

http://www.keithelder.net/blog/archive/2008/10/17/WCF-vs-ASMX-WebServices.aspx

Download the PowerPoint and have a look at it - also, watch Keith's DotNetRocks TV appearance for a great screencast intro to WCF and its advantages over ASMX.

Marc

腻橙味 2024-08-15 02:00:24

Web 服务需要在标准 HTTP 端口上使用 HTTP 协议,对吧? WCF 更加灵活。它可以基于HTTP、TCP、UDP等。它允许您设计具有网络连接的应用程序,而不必太关心所使用的协议。然后您可以更轻松地切换网络协议而不影响应用程序。

Web services require use of HTTP protocol on standard HTTP ports, right? WCF is more flexible. It can be based on HTTP, TCP, UDP and such. It allows you to design an application with network connectivity without caring so much about the protocol used. Then you can more easily switch the network protocol without affecting the application.

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