ASMX Web服务,ASP.NET Web API,REST服务,WCF和WCF REST中的大混乱 [英] Big Confusion in ASMX web service, ASP.NET Web API, REST services, WCF and WCF REST

查看:109
本文介绍了ASMX Web服务,ASP.NET Web API,REST服务,WCF和WCF REST中的大混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我不是Web服务的新手,并且正在尝试学习和实现新的东西。但我对使用的方式和使用方式感到困惑,有很多文章,但它们彼此相关,让我有点迷惑。



< pre lang =text> 1)ASMX WEBSERVICES
2)REST服务
3)WEB API
4)ASP.NET WEB API
5)WCF
6 )WCF REST服务
7)REST WCF





请更正我如果我有错误的信息,因为在学习之前很高兴第一次清楚地了解它们:



 A。 3(WEB API)和4(ASP.NET WEB API)只是名称的区别。在VERBS上使用HTTP协议。与WCF不同,它不使用任何端点。数据格式使用XML,JSON和HTML
但在WEB API中,处理CORS是典型的。

B. WCF REST SERVICE是否与WEB API或ASP.NET WEB API相同?如果大YES,那么为什么在WCF?

C. 1(ASMX WEBSERVICES)只是我们在IIS中使用的旧Web服务,并且在SOAP数据上使用WSDL以XML格式使用。







请指导我...

谢谢

解决方案

< blockquote>查看这些链接 [ ^ ]



[ ^ ]


Hi friends,

I am not new in Web-Services and trying to learn and implement new things. But I am confused in terms are being used and the way they are used, there are many articles but they are relating to each other and making me bit confuse.

1) ASMX WEBSERVICES
2) REST SERVICES
3) WEB API
4) ASP.NET WEB API
5) WCF
6) WCF REST SERVICE
7) REST WCF



Please correct me If I have wrong information about them because before learn them it is good to first know them clearly:

A. 3 (WEB API) and 4 (ASP.NET WEB API) are same just the name difference. Use over HTTP protocols with VERBS. Unlike WCF, it does not use any endpoints. Data format use "XML","JSON" and "HTML"
But in WEB APIs it is typical to deal with CORS.

B. Is WCF REST SERVICE same as "WEB API" or "ASP.NET WEB API"? If big YES, then why in WCF?

C. 1 (ASMX WEBSERVICES) are just old web services that we use deploy at IIS and consume with WSDL on SOAP data is consume in XML format.




Please guide me...
Thanks

解决方案

Check out these links [^]

[^]


这篇关于ASMX Web服务,ASP.NET Web API,REST服务,WCF和WCF REST中的大混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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