JSON-RPC 和 Json-rpc 服务发现规范

发布于 2024-08-29 00:38:50 字数 1523 浏览 5 评论 0 原文

我将实现 JSON-RPC Web 服务。我需要这方面的规范。到目前为止,我只找到一种可以称为真正规范的资源:

但是我已经发现像 Dojo 这样的 JavaScript 框架积极使用 JSON-RPC SMD

但它需要 JSON Schema 规范,但它重定向到错误的 URL 作为参考。到目前为止,我发现了以下内容:

而且它仍然是草案...

任何人都可以向我指出一些实际的规范...至少有一些官方更新的内容吗?因为看起来按原样实现 JSON-RPC 1.0 可能还不够,至少对于像 Dojo 这样的框架来说是这样。还是我错了?

问题:

  • 实施 JSON-RPC 1.0 规范是否足以为大多数现代客户端提供 JSON-RPC 服务,以及有多少客户端(如果有的话)实际支持功能超越 JSON-RPC 1.0(SMD、Schema、2.0)?

    因为看起来 JSON-RPC 1.0 只是一个具有官方规范(而非草案)的规范

  • 如果我应该实现 SMD,或者建议有人可以指出Json Schema 的官方最新规范< /strong> 和服务映射描述,或者我找到的链接真的是“规范吗?”

  • JSON-RPC 2.0、SMD 和 JSON-Schema 草案是否足够稳定以实现它们?

注意:不建议现有的 JSON-RPC 服务实现。

有人吗?

编辑:有人使用 JSON-RPC 吗?

I'm going to implement JSON-RPC web service. I need specifications for this. So far I had found only one resource that can be called as real specifications:

However I've seen that JavaScript frameworks like Dojo actively use JSON-RPC SMD

But it requires JSON Schema specifications, but it redirects to incorrect URL as reference. So far I had found the following:

And it is still draft...

Can anybody point me to some actual specifications... At least something official updated? Because it looks like that implementing JSON-RPC 1.0 as is may be not enough, at least for frameworks like Dojo. Or am I wrong?

Questions:

  • Would implementation of JSON-RPC 1.0 specifications be enough to provide JSON-RPC service for most of modern clients, and how many clients are there (if at-all) that actually support capabilities beyond JSON-RPC 1.0 (SMD, Schema, 2.0)?

    Because it looks like that JSON-RPC 1.0 is only one that has official specifications (and not draft)

  • If I should implement SMD, or it is recommended can somebody point to official, most recent specifications of Json Schema and Service Mapping Description or are the links I found really "the specifications?"

  • Are JSON-RPC 2.0, SMD and JSON-Schema drafts stable enough to implement them?

Note: do not suggest existing JSON-RPC service implementations.

Anybody?

Edit: Anybody uses JSON-RPC at all?

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

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

发布评论

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

评论(4

浅暮の光 2024-09-05 00:38:50

如果我应该实现SMD,或者它是
推荐有人可以指点一下吗
官方最新规格
Json Schema 和服务映射
我找到的描述或链接是
真的是“规格吗?”

是 JSON-RPC 2.0、SMD 和 JSON-Schema
草案足够稳定以实施
他们?

我发现使用这些东西的每个项目都链接到与您找到的相同规格。人们根据草案规范使用它,但不足以真正推动优秀文档和示例的开发。

http://javascript.neyric.com/ blog/2009/03/06/inputex-022-smd-yui-rpc/

http://www.tine20.org/wiki/index.php/Developers/Concepts/Howto_connect_to_Tine_2.0_over_JSON-RPC

http://framework.zend.com/manual/en/zend.json.server.html

If I should implement SMD, or it is
recommended can somebody point to
official, most recent specifications
of Json Schema and Service Mapping
Description or links I found are
really "the specifications?"

Are JSON-RPC 2.0, SMD and JSON-Schema
drafts stable enough to implement
them?

Every project I've found using this stuff links to the same specs that you've found. Folks are using it based on the draft specs, but not enough to really drive the development of good docs and examples.

http://javascript.neyric.com/blog/2009/03/06/inputex-022-smd-yui-rpc/

http://www.tine20.org/wiki/index.php/Developers/Concepts/Howto_connect_to_Tine_2.0_over_JSON-RPC

http://framework.zend.com/manual/en/zend.json.server.html

予囚 2024-09-05 00:38:50

我在dojo文档中找到了SMD的规范。到目前为止,这是我能找到的最完整、最新的。您是否幸运地启动并运行了 JsonRPC 服务?

https://github.com/dojo/docs/blob/master /dojox/rpc/smd.rst

I have found the specification for SMD in the dojo documentation. So far this is the most complete and most up to date I could find. Did you have any luck getting your JsonRPC service up and running?

https://github.com/dojo/docs/blob/master/dojox/rpc/smd.rst

茶色山野 2024-09-05 00:38:50

JSON-RPC.NET 中有一个 SMD。因此,如果您想要一些示例代码,可以从源浏览器中提取它。这是一个SMD代码链接,它至少值得看看吧,尽管它尚未声称发布优质 SMD 服务。

There is an SMD in JSON-RPC.NET. So if you would like some sample code you can pull it from the source browser. Here is a Link to SMD code, it could at least be worth a peek, even if though it's not claimed to be release quality SMD service yet.

旧城烟雨 2024-09-05 00:38:50

我根据以下参考创建了 Brutusin-RPC

就我而言,最后一个草案的事实并没有让我太困扰,因为该库提供了隔离客户端的工具从模式的细节来看,比如端点客户端、描述性内置服务和测试模块……事实上,我使用了 JSON-Schema 的一些自定义扩展……

I created Brutusin-RPC based on the following references:

In my case the fact of this last being a draft did not bother me too much since the library provides tools that isolate the client from the details of the schema, like endpoint clients, descriptive builtin services, and testing modules... In fact, I use some custom extensions of JSON-Schema...

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