What is the best way to implement a open/cross platform web service API to an existing .NET App? Not being a strictly .NET friendly API. It already has ASP.NET exposed web services, but need to be built into an generic API allowing inserts, updates and deletes and returning results based on user criteria in standard SOAP, JSON or other common formats, similar to Google's Data API's.
对现有的。net应用程序实现开放/跨平台web服务API的最佳方式是什么?不是一个严格的。net友好的API。它已经有了ASP。NET公开了web服务,但是需要构建到一个通用API中,允许基于标准SOAP、JSON或其他公共格式的用户标准进行插入、更新、删除和返回结果,类似于谷歌的数据API。
Are there any frameworks designed for this or is it a build it from scratch project implementing each format/protocol manually?
是否有针对这个设计的框架,或者是一个从头开始,手工实现每个格式/协议的框架?
Thanks.
谢谢。
4 个解决方案
#2
2
I don't think Agatha is what you are looking for. Don't get me wrong - it is great at it's intended purpose as a service layer for your app, but I don't think it works as well as a public api.
我不认为阿加莎是你要找的。不要误解我的意思——它很适合作为应用程序的服务层,但我认为它不如公共api好用。
For any outward facing web api stuff on .NET I would strongly recommend ServiceStack.net. It meets all your requirements and then some.
对于任何面向外部的web api,我强烈推荐ServiceStack.net。它满足了你所有的要求。
The newly released ASP.Net Web API from Microsoft is looking to be a good choice in the future if you are on a project that constrains you from using third party options such as ServiceStack.
新发布的ASP。如果你是在一个限制你使用诸如ServiceStack之类的第三方选择的项目上,那么来自微软的Net Web API将是一个不错的选择。
#3
0
Take a look at RIA services.
看看RIA服务。
http://code.msdn.microsoft.com/RiaServices
http://code.msdn.microsoft.com/RiaServices
#4
0
Leverage WCF Data Services (formerly ADO.Net Data services, formerly Astoria). If you need your own data service provider (instead of Linq to Entities for example), see Alex James' blog
利用WCF数据服务(以前是ADO)。Net Data services,前身为Astoria)。如果您需要自己的数据服务提供者(例如,不需要Linq到实体),请参阅Alex James的博客
#1
#2
2
I don't think Agatha is what you are looking for. Don't get me wrong - it is great at it's intended purpose as a service layer for your app, but I don't think it works as well as a public api.
我不认为阿加莎是你要找的。不要误解我的意思——它很适合作为应用程序的服务层,但我认为它不如公共api好用。
For any outward facing web api stuff on .NET I would strongly recommend ServiceStack.net. It meets all your requirements and then some.
对于任何面向外部的web api,我强烈推荐ServiceStack.net。它满足了你所有的要求。
The newly released ASP.Net Web API from Microsoft is looking to be a good choice in the future if you are on a project that constrains you from using third party options such as ServiceStack.
新发布的ASP。如果你是在一个限制你使用诸如ServiceStack之类的第三方选择的项目上,那么来自微软的Net Web API将是一个不错的选择。
#3
0
Take a look at RIA services.
看看RIA服务。
http://code.msdn.microsoft.com/RiaServices
http://code.msdn.microsoft.com/RiaServices
#4
0
Leverage WCF Data Services (formerly ADO.Net Data services, formerly Astoria). If you need your own data service provider (instead of Linq to Entities for example), see Alex James' blog
利用WCF数据服务(以前是ADO)。Net Data services,前身为Astoria)。如果您需要自己的数据服务提供者(例如,不需要Linq到实体),请参阅Alex James的博客