.NET 服务的跨平台 RPC

发布于 2024-07-27 20:56:58 字数 372 浏览 5 评论 0原文

我有一个 .NET 2.0 服务,当前通过 .NET 远程处理进行访问,我想添加对另一种 RPC 方法的支持,该方法允许更广泛的平台和语言支持。

所有 API 方法都接受并返回 XML 以及 int 等简单类型。

我了解 CORBAIIOP.NET 看起来很有前途。

我还应该关注哪些其他技术?

I have a .NET 2.0 service that is currently accessed via .NET remoting, and I would like to add support for another RPC method that allows a wider range of platform and language support.

All of the API methods take and return XML and simple types like int.

I know about CORBA and IIOP.NET which look promising.

What other technologies should I be looking at?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

拔了角的鹿 2024-08-03 20:56:58

如果可能的话,为此使用的最好的方法可能是:

Windows Communication Foundation (WCF)

WCF 似乎正在(缓慢但肯定地)取代 .NET 远程处理,并且一旦您拥有了一组为使用 WCF 编写的类/功能(主要涉及使用属性和用法来装饰您的类/方法)定义契约的接口 - 无论如何都是标准的 OOP 最佳实践)您可以通过许多不同的通信机制公开该功能,所有这些都可以通过简单的配置文件进行控制。

Windows Communication Foundation (WCF) 提供了一个统一的框架,用于快速构建面向服务的应用程序,从而可以轻松构建和使用安全、可靠和事务性的 Web 服务。

WCF 的单一编程模型统一了 ASMX、WSE、Remoting、COM+ 和 MSMQ 中的功能; 因此开发者只需要学习一种编程模型。

此外,WCF 服务现在通过支持表述性状态传输 (REST)、JavaScript 对象表示法 (JSON) 和普通旧式 XML (POX) 编码等架构,提供了更大的设计灵活性。

您可以为可能需要与您的服务通信的其他基于 .NET 的应用程序指定基于二进制的通信机制,从而使通过“线路”流动的数据量尽可能最小,同时暴露那些确切的数据。使用 XML 通过 SOAP 提供相同的服务,以实现最大的可移植性和跨平台访问。

WCF 的一个良好起点及其优点是:
构建 Windows Communication Foundation Services 简介

If possible, probably the best thing to be using for this would be:

Windows Communication Foundation (WCF)

WCF seems to be (slowly but surely) replacing .NET remoting, and once you have a set of classes/functionality that is written to use WCF (which mostly involves decorating your classes/methods with attributes and usage of interfaces to define contracts - all standard OOP best practises anyway) you can expose that functionality over a number of different communication mechanisms, all of which can be controlled via simple config files.

Windows Communication Foundation (WCF) provides a unified framework for rapidly building service-oriented applications that makes it easy to build and consume secure, reliable, and transacted Web services.

WCF’s single programming model unifies the capabilities in ASMX, WSE, Remoting, COM+, and MSMQ; therefore developers need to learn only one programming model.

In addition, WCF services now offer more design flexibility by supporting architecture such as Representational State Transfer (REST), JavaScript Object Notation (JSON), and Plain Old XML (POX) encoding.

You can specify binary-based communication mechanisms for other .NET-based applications that may need to talk to your services, thereby keeping the amount of data flowing over the "wire" as minimal as possible, whilst at the same time, exposing those exact same services over SOAP using XML to enable maximum portability and cross-platform access.

A good starting point for WCF, and it's benefits, is:
Introduction to Building Windows Communication Foundation Services

π浅易 2024-08-03 20:56:58

只使用 SOAP 怎么样? WCF 对其支持非常好,包括对 WS-Security 和其他此类 WS-* 协议的支持。

How about just using SOAP? WCF supports it very well, including support for WS-Security and other such WS-* protocols.

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