Communication between (Desktop/Smartphone) Application and Web Application

Posted by erlord on Stack Overflow See other posts from Stack Overflow or by erlord
Published on 2010-04-17T18:27:15Z Indexed on 2010/04/17 18:33 UTC
Read the original article Hit count: 270

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:

  1. 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?

  1. 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

© Stack Overflow or respective owner

Related posts about JSON

Related posts about bison