WCF 的开源替代方案
你能告诉我 WCF 的开源替代品吗? 我是一个新手,刚刚开始使用 WCF。我也想了解开源的替代方案。 另外,与 WCF 相比,是什么让它们成为更好的选择/不太好。
谢谢, 托塔特里
Could you tell me the open source alternatives to WCF??
I'm a newbie and just started using WCF. I wanted to know about the alternatives that are open source too.
Also, what makes them better options/not so good compared to WCF.
Thanks,
Thothathri
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
有一些针对 REST 服务的开源项目 - 例如 Open Rasta 也许您也会找到一些用于基本 SOAP 服务的开源项目,但我怀疑是否有一个开源项目实现了 WCF 中实现的所有 WS-* 相关内容。 WS-* 协议大多仅在大公司(MS、IBM、Oracle、SAP 等)的 API 中实现。原因是:
即使 WCF 也仅实现 WS-* 协议的子集。但 WCF 具有高度可扩展性,因此任何人都可以尝试自己实现其中一些缺失的协议。
WCF 不仅仅声明了 REST 和 SOAP 服务。它还取代了旧版 .NET 版本中的 .NET Remoting 和 Enterprise 服务。您找不到一个 .NET API 也能提供所有这些功能。
There are open source projects for REST services - for example Open Rasta Perhaps you will also find some open source projects for basic SOAP services but I doubt that there is an open source project implementing all WS-* related stuff implemented in WCF. WS-* protocols are mostly implemented only in API from big companies - MS, IBM, Oracle, SAP, etc. Reasons are:
Even WCF implements only subset of WS-* protocols. But WCF is highly extensible so anybody can try to implement some of these missing protocols himself.
WCF doesn't states only for REST and SOAP services. It is also replacement of .NET Remoting and Enterprise services from older .NET versions. You will not find a .NET API which will also offer all this functionality.
我还强烈建议您查看 ServiceStack,它是我启动的一个免配置 Web 服务框架使您能够轻松、快速地开发 Web 服务,几乎没有任何阻力。
它提供了一个富有表现力的无摩擦环境,因为您可以使用自己的 POCO C# DTO 来开发 Web 服务,这也鼓励最佳实践 Web 服务开发,因为您可以轻松地创建更多批处理、更粗略的服务。粒度 API。
它的目标是通过将 C# 与 HTTP 紧密融合来提高工作效率,其中返回的所有 C# 对象都会自动序列化为所请求的格式,并支持开箱即用的(XML、JSON、JSV、CSV、SOAP 1.1/1.2、HTML)。 C# 异常还会自动序列化,让您轻松完成繁琐的事情。
主要好处之一是无需关心外部格式和端点(由框架负责),您只需在洁净室、自动连接和高度可测试、类似 DDD 中开发逻辑即可IService类。
I also highly recommend checking out ServiceStack, it's a config-free web service framework I started that lets you easily and rapidly develop web services with very little friction.
It provides an expressive friction-less environment as you're able to develop web services by using you're own POCO C# DTO's which also encourages best-practices web service development since you're easily able to create more batch-full, coarse-grained APIs.
It's aims to be more productive by closely fusing C# with HTTP where all C# objects returned get automatically serialized to the requested format with (XML, JSON, JSV, CSV, SOAP 1.1/1.2, HTML) supported out-of-the-box. C# Exceptions also get automatically serialized for you making the tedious things effortless.
One of the major benefits is not needing to be concerned with external formats and endpoints (which are taken care by the framework) and you're left with developing your logic in a clean-room, auto-wired and highly testable, DDD-like IService class.
如果您尝试创建 RESTful 服务,可以使用 RestCake。
You could use RestCake if you're trying to create RESTful services.
Mono 项目正在为 Github。如您所知,System.ServiceModel 是 WCF 的主要引擎。您可以在
/mono/mcs/class/System.ServiceModel.*
下找到这些命名空间的 Mono 实现。您可以在此处找到项目相关更新和相关贡献信息Mono project has an ongoing effort for WCF hosted in Github. As you know, System.ServiceModel is the main engine for WCF. You can find Mono implementations of these namespaces under
/mono/mcs/class/System.ServiceModel.*
. You can find project related updates and relevant contribution information here