Hi,

For now I added Wiki and Space and the Search access in xwiki-android-rest
via handling JSON objects.
I commited new files to repo.

When I implementing access to Page resources I found that Xwiki REST sends
different contents in XML and JSON
For example
XML content
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction?media=xml
is different from
JSON content
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Blog/pages/BlogIntroduction?media=json

Because of this difference I decided to deserialize XML instead of JSON. (I
must modify all the class files for this).

XWiki RESTful API doc (
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) describes
XML -> Java conversion by using "org.apache.commons.httpclient".
But this library seems to be larger in size. As Thomas said size does matter
in Android. Therefore I decided to use "org.apache.http" which built in
Android.

But I got following error

06-12 20:02:55.070: WARN/dalvikvm(650): VFY: unable to resolve static method
1169: Ljavax/xml/bind/JAXBContext;.newInstance
(Ljava/lang/String;)Ljavax/xml/bind/JAXBContext;

Can anybody suggest me what causes this error?


Best Regards,
Chamika Weerasinghe
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to