开发者

How can my AIR app communicate with my server?

I want my app to communicate with with server. I want the app to store something like notes and contacts开发者_StackOverflow. They can run the app on any system, and get their contacts on any machine by entering their username and password...

As you can see authentication security of user's data is important. I am considering using Google App Engine as the server. Can anyone guide me how I can implement this synchronization mechanism for my application?


Check out PyAMF. It implements Action Message Format (AMF) support for Python that you can use to communicate AIR apps to the App Engine server. It has integration with several App Engine frameworks, including webapp and tipfy.


I would use java as the language and expose a web service containing the operations required by your app.

Currently java under google app engine it's easiest to use RESTful services. Check out the jersey project. If you can implement their demo using Google App Engine, that's a good start.

Contact me if you get stuck, I've already done this.

http://wikis.sun.com/display/Jersey/Main

The reason for REST over SOAP is that Google App Engine does not have JAX-WS whitelisted, but does have JAX-RS whitelisted now. I believe parts of JAX-WS (can) depend on raw sockets, which are illegal in Google App Engine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜