• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

iPhone/Android app communicating Java backend

 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser 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
 
ranger
Posts: 17346
11
Mac IntelliJ IDE 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
 
Ranch Hand
Posts: 528
10
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.

 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic