• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

iPhone/Android app communicating Java backend

 
K. Tsang
Bartender
Posts: 3585
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all

New to iPhone & Android. I am designing an app that has mobile front-end (iPhone and Android). The backend (business and persistence) most likely Java EE.

What are some of the approaches for mobile front-end to access/communicate Java backend? I'm thinking of either web service or simple POJO.

For web service, the front-end will need to parse the xml response. For POJO, can iPhone (objective C) unmarshal/deserialize (Java) objects? I know Android can cos it's Java.

Other suggestions are welcome
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend making the server side speak to the client with JSON, not XML. So either a REST API using something like Spring REST MVC. Another option, but something new to learn is something like Vert.x which allows for http, sockets and web sockets to connect to a server. but still sending JSON back and forth.

Mark
 
Giovanni Montano
Ranch Hand
Posts: 253
4
Android Open BSD Slackware
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Minh Thang wrote:I also recommend making the server side to the client with JSON instead of XML.

third recommendation.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic