WCF VS的ASP.NET Web API [英] WCF vs ASP.NET Web API

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

问题描述

我已经花了几个月试图掌握WCF背后的概念,最近我已经开发了我的第一个WCF服务应用程序。结果
我挣扎着相当多的了解在配置文件中的所有设置。结果
我不相信关于环境的,但似乎你可以做大放异彩吧。结果
有一天,我发现,微软还推出了一个名为的ASP.NET Web API 新的东西。结果
什么我可以读这是一个 REST风格的框架,很容易使用和实施。结果
现在,我试图找出什么是2框架之间,如果我应该尝试转换的主要区别我的的新API WCF服务应用程序。

I've spent a few months trying to grasp the concepts behind WCF and recently I've developed my first WCF service application.
I've struggled quite a bit to understand all the settings in the config file.
I am not convinced about the environment but it seems that you can do amazing stuff with it.
The other day I've found out that Microsoft has come out with a new thing called ASP.NET Web API.
For what I can read it's a RESTful framework, very easy to use and implement.
Now, I am trying to figure out what are the main differences between the 2 frameworks and if I should try and convert my old WCF service application with the new API.

可能有人,请帮助我了解每个的差异和用法?

Could someone, please, help me to understand the differences and usage of each?

推荐答案

新的的ASP.NET Web API 是一个在previous WCF的Web API 项目(的延续虽然有些<一个href=\"http://wcf.$c$cplex.com/wikipage?title=How%20to%20Migrate%20from%20WCF%20Web%20API%20to%20ASP.NET%20Web%20API\">concepts已经改变)。

The new ASP.NET Web API is a continuation of the previous WCF Web API project (although some of the concepts have changed).

WCF最初创建,使基于SOAP的服务。对于简单的REST风格或RPCish服务(觉得像jQuery的客户端)的ASP.NET Web API应该是不错的选择。

WCF was originally created to enable SOAP-based services. For simpler RESTful or RPCish services (think clients like jQuery) ASP.NET Web API should be good choice.

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

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