views:

86

answers:

2

I want my app to communicate with with server. I want the app to store something like notes and contacts. 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?

+5  A: 

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.

moraes
Can this be useful if I have to develop my app primarily using XHTML, CSS and JavaScript?
Shubh
AMF is the protocol you'll use to talk to the server in any case.
moraes
What about authentication?
Shubh
Handled server side. You can use built in App Engine auth or implement your own.
moraes
+2  A: 

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.

MStodd
So you say I should expose a REST API and then use it for communication, right? What about authentication?
Shubh
I'm by no means an authentication expert. What kind of authentication are you thinking?
MStodd

related questions