Rails 开发人员如何与 Flex 前端交谈? [英] How does a Rails developer talk to Flex front ends?

查看:16
本文介绍了Rails 开发人员如何与 Flex 前端交谈?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Rails 开发视为 Flex 应用程序的后端,并试图找出 Rails 应用程序和 Flash Player 之间的通信层.我发现的所有内容都建议使用 SOAP 网络服务进行通信.

I'm looking at Rails development as a backend to a Flex application and am trying to figure out the communication layer between the Rails app and the Flash Player. All of the things I am finding suggest using SOAP web services to communicate.

然而,Flash 支持 AMF,它既好又快(和原生).有没有什么方法可以从 Rails 应用程序通过 AMF 进行通信,同时支持有关 AMF 的所有好"功能(自动类型转换、数据推送等).

However, Flash supports AMF which is nice and fast (and native). Is there any way of communicating over AMF from a Rails app, whilst supporting all the "nice" things about AMF (automatic type conversion, data push etc).

推荐答案

WebORBRubyAMF,您可以使用它来响应来自 Rails 的 AMF,方法有点每个人都不同,所以这取决于您的需求.Flexible Rails 电子书的最后几章讨论了 RubyAMF,这是关于将 Rails 与 Flex 结合使用的好资源.

There is WebORB or RubyAMF which you can use to respond in AMF from Rails, the approaches are a bit different for each one so it depends on your needs. RubyAMF is discussed in the closing chapters of the Flexible Rails eBook which is a good resource on using Rails with Flex.

这篇关于Rails 开发人员如何与 Flex 前端交谈?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆