Perl 中的 RPC::XML::Server 库
我想获得一些在 Perl 中使用 RPC::XML::Server 库的经验,特别是稳定性和健壮性问题。还想就这种用法与其他一些 Perl 库进行比较
I would like to get some experiences of using RPC::XML::Server library in Perl, especially the stability and robustness issues. Also would like to get comparison to some other Perl libraries regarding this kind of usage
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们正在不提供客户端/服务器功能的系统上使用 RPC-XML 构建一些数据访问器。我们刚刚开始,所以我无法评论稳健性,但创建库并测试它们非常容易。
我花了大约一个小时为 Perl 服务器和客户端构建示例代码,然后用 Ruby 和 Python 构建客户端,以便展示互操作性。该代码是为我们的一位网络工程师提供的,他很喜欢它。
我喜欢它,因为它非常简单,他可以负责编码,而且我正在和他一起进行代码审查,以让他遵循 Perl 方式。
We're building up some data accessors using RPC-XML on a system that doesn't offer client/server ability. We've just started so I can't comment on robustness, but creating the libraries and testing them has been really easy.
It took me about an hour to build sample code for a Perl server and client, then clients in Ruby and Python so I could show the interoperability. The code was for one of our network engineers, who loves it.
I like it because it's so simple he can take care of the coding, and I'm doing code reviews with him, to keep him following the Perl way.
我认为我有一个更复杂的场景,但我没有使用 RPC-XML,我将来可能会考虑该选项。我目前正在使用 Frontier::Daemon 作为 XML-RPC 服务器。我相信如果我使用 RPC-XML,场景仍然会一样复杂。
我将 XML-RPC 服务器与 Perl 反射结合使用,动态地从外部库/模块提供 XML-RPC 方法。我构建它作为 Robot Framework 测试自动化框架的 Perl 测试库服务器。
不幸的是,我还没有让它完全发挥作用。库可以在本地执行,但在用于 XML-RPC 时会失败,这正是其意图。
您可以在此处查看我的项目:http://code.google.com/p/plrobotremoteserver/
仅供参考,我使用了 Frontier::Daemon,因为在我做这个项目时,在线文档似乎表明 Frontier 更容易使用。
I think I have a more complex scenario, but I'm not using RPC-XML, I may consider that option in the future. I'm currently using Frontier::Daemon for an XML-RPC server. I believe the scenario would still be just as complex if I used RPC-XML instead.
I'm using XML-RPC server in combination with Perl reflection to dynamically serve XML-RPC methods from an external library/module. I built it for use as a Perl test library server for Robot Framework test automation framework.
Unfortunately, I haven't gotten it to fully work. Library works executing locally but fails when used for XML-RPC, which was the intent.
You can review my project here: http://code.google.com/p/plrobotremoteserver/
FYI, I used Frontier::Daemon, because at the time I was doing this project, the online docs seem to show that Frontier was easier to work with.