WCF REST和WEB API REST混淆了吗? [英] WCF REST and WEB API REST confused?

查看:79
本文介绍了WCF REST和WEB API REST混淆了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以在WCF和WEBAPI中实现REST。为什么我们去WEBAPI?而不是我们使用WCF REST?.WCF REST和WEBAPI REST之间有什么不同。据我所知,WCF使用SOAP和WEB API使用REST。

It is possible to implement REST in Both WCF and WEBAPI. Than why we go WEBAPI?. Instead of that we use WCF REST?.What is different between WCF REST and WEBAPI REST. As I know WCF used SOAP And WEB API Used REST.

推荐答案

1.但是,在.NET中,应该使用Web API 来实现支持用于WEB应用程序。 Web API是'One ASP.net'系列的一部分,这意味着它本身支持您目前可能与MVC或Web表单一起使用的所有优秀共享功能。



2.WCF设计用于实现应用程序或应用程序模块之间的通信,它是构建面向服务的应用程序的框架。
1.Shortly, in .NET, Web API should be used to implement backed for the WEB application. Web API is part of the ‘One ASP.net’ family which means that it natively supports all of the great shared features you may currently use with MVC or web forms.

2.WCF instead is designed for implementing communication between applications or applications modules, and it is a framework for building service-oriented applications.


这篇关于WCF REST和WEB API REST混淆了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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