Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android and Google App Engine: supported XML Binding Tool available?

Tags:

A REST XML (not JSON!) Web Service should exchange XML Schema specified XML between a Google App Engine and an Android app.

I wanted to use XStream for both, however, I could not get it to work for the Google App Engine, therefore to me Apache XMLBeans is the next best choice (JAXB does not work on both). However, with Google App Engine there is no problem, but on Android, I get several severe exceptions (eg. due to the usage of the Stax API with its javax.xml.* packages).

So,

  1. Is there any other XML-binding possibility to stream XML documents on GAE and Android?
  2. If not, is it possible to patch Apache XMLBeans to work with Android?

Thanks!

like image 492
Ice09 Avatar asked Feb 14 '10 01:02

Ice09


1 Answers

I'm poking in the dark here, since i haven't tried anything of this, yet:

There's this blog entry from XBinder which claims that they are releasing an android-compatible version "in a few weeks". While that might not be an option right now, they also explain a bit of how they have done it, wrapping a light StAX-like wrapper on the XmlPull support already present in Android.

(my answer originally had another paragraph on XStream working on android, but then i read the question again and saw that your problem was with getting XStream to work on the AppEngine side...)

like image 103
David Avatar answered Sep 24 '22 13:09

David