Communication between (Desktop/Smartphone) Application and Web Application
- by erlord
Hi all
I wonder what is the commonly used method and protocol for a, say, smartphone application to send its data to a web application (where these data should be proceeded and stored).
My naive beginner's approach would be something like this:
From my smartphone app, use a framework encoding my data object into a json object
Send this object via http to a listener addressed by a dedicated URL
On the server side, use a JSON parser and store it via ORM etc. into a database
Questions:
Is this too naive?
2a. If yes: What is the appropiate way to tackle this workflow?
2b. If no: What frameworks to use in JAVA for serializing/deserializing to/from JSON objects?
Any example for a json listener in the web? Tutorial for a http-protocol based Java listener?
Thanks for all answers and suggestions in advance.
Regs
Me