WCF 的开源替代方案

发布于 2024-11-13 07:31:25 字数 105 浏览 3 评论 0原文

你能告诉我 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

唔猫 2024-11-20 07:31:25

有一些针对 REST 服务的开源项目 - 例如 Open Rasta 也许您也会找到一些用于基本 SOAP 服务的开源项目,但我怀疑是否有一个开源项目实现了 WCF 中实现的所有 WS-* 相关内容。 WS-* 协议大多仅在大公司(MS、IBM、Oracle、SAP 等)的 API 中实现。原因是:

  • 复杂性 - 实现 WS-* 协议意味着深入研究大量规范。您还必须非常仔细地实现它们,才能真正实现互操作,并且不会过多降低性能。
  • 支持 - WS-* 协议通常用于 B2B 解决方案,企业需要一些保证和支持。
  • 成本——开发这样的 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:

  • Complexity - implementing WS-* protocols means diving deep into tons of specifications. You must also implement them very carefully to be really interoperable and to do not reduce performance too much.
  • Support - WS-* protocols are usually used in B2B solutions where enterprises demands some guarantees and support.
  • Costs - developing such API takes really long time.

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.

奶气 2024-11-20 07:31:25

我还强烈建议您查看 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.

冷︶言冷语的世界 2024-11-20 07:31:25

如果您尝试创建 RESTful 服务,可以使用 RestCake

You could use RestCake if you're trying to create RESTful services.

旧人哭 2024-11-20 07:31:25

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文