WCF和ASMX Web服务之间有什么区别? [英] What are the differences between WCF and ASMX web services?

查看:93
本文介绍了WCF和ASMX Web服务之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对WCF和ASMX Web服务完全感到困惑.在我的早期阶段,我已经使用了很多Web服务,现在引入了一个称为WCF的新事物.我仍然可以创建充当Web服务的WCF.我认为WCF中会有更多内容.

I am totally confused between WCF and ASMX web services. I have used a lot of web services in my earlier stage, and now there is this new thing introduced called WCF. I can still create WCF that function as a web service. I think there will be more stuff in WCF.

WCF和Web服务之间有什么区别?何时应使用每个?

What are the differences between WCF and Web services? When should each one be used?

推荐答案

基思·埃尔德(Keith Elder)很好地比较了将ASMX转换为WCF .签出来.

Keith Elder nicely compares ASMX to WCF here. Check it out.

ASMX和WCF的另一种比较可以在此处找到-我不是100%同意那里的所有观点,但这可能会给您一个想法.

Another comparison of ASMX and WCF can be found here - I don't 100% agree with all the points there, but it might give you an idea.

WCF基本上就是"ASMX onsteroids"(可能是ASMX的全部功能),还有更多!.

WCF is basically "ASMX on stereoids" - it can be all that ASMX could - plus a lot more!.

ASMX是:

  • 易于编写和配置
  • 仅在IIS中可用
  • 仅可通过HTTP调用

WCF可以是:

  • 托管在IIS,Windows服务,Winforms应用程序,控制台应用程序中-您完全有自由
  • 与HTTP(REST和SOAP),TCP/IP,MSMQ和许多其他协议一起使用

简而言之:WCF可以在这里完全替代ASMX.

In short: WCF is here to replace ASMX fully.

在MSDN上查看 WCF开发人员中心.

更新:链接似乎已失效-尝试以下操作:

Update: link seems to be dead - try this: What Is Windows Communication Foundation?

这篇关于WCF和ASMX Web服务之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆