柔性/空气 + Catalyst:让他们互相交谈的最佳方式是什么?
让 Adobe Flex/AIR 与 perl Catalyst 进行通信的最佳方式是什么?
我们目前在 Catalyst 上使用 Catalyst::Plugin::XMLRPC侧和 Flex/AIR 侧的 as3-rpclib。 这工作得很好,但我宁愿把 as3-rpclib 排除在外,并使用 Flex 原生的方法。
据我所知,它的本机组件是 HTTPService、WebService (SOAP) 和 RemoteObject。
哪一种最适合 Catalyst 环境?
另外,你能给我指一个获胜者的“Hello World”例子吗? WSDL 让我头晕目眩。
What is the best way to get Adobe Flex/AIR to communicate with perl Catalyst?
We are currently using Catalyst::Plugin::XMLRPC on the Catalyst side and as3-rpclib on the Flex/AIR side. That works fine, but I'd rather take as3-rpclib out of the picture and use a method that is native to Flex.
From what I can tell, it's native compnonents are HTTPService, WebService (SOAP), and RemoteObject.
Which one is the best fit in the Catalyst environment?
Also, could you point me to a nice "Hello World" example of the winner? WSDLs make my head spin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SOAP 和 Catalyst::Controller:: SOAP 看起来就是你想要的。 它基于 XML::Compile::SOAP,这是“好的”。 这些文档告诉您如何将 WSDL 变成 Catalyst 应用程序提供的服务。
(如果您想走另一条路,可以使用 Catalyst::Model::SOAP,但我认为这不是您想要的。)
如果 JSON 是一种选择,您可能会考虑这样做。 与 Catalyst::Controller::REST 或 Catalyst::View::JSON 一起使用非常容易。
SOAP and Catalyst::Controller::SOAP look to be what you want. It is based on XML::Compile::SOAP, which is "the good one". The docs tell you how to make a WSDL into a service that your Catalyst app provides.
(If you want to go the other way, there is Catalyst::Model::SOAP, but I don't think that's what you want.)
If JSON is an option, you might consider that. It is very easy to use with Catalyst::Controller::REST or Catalyst::View::JSON.