Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7170829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:17:26+00:00 2026-05-28T15:17:26+00:00

In my Android app, I need to talk to a webserver that expects marshalled

  • 0

In my Android app, I need to talk to a webserver that expects marshalled objects of complex classes. These custom classes were produces from a WSDL file, so they already come with annotations. The server uses JAXB for marhalling and unmarhalling.

So, on the client side, using JAXB, I would simple to this:

JAXBContext jc = JAXBContext.newInstance("schema_definition_path");
Marshaller m = jc.createMarshaller();
Unmarshaller u = jc.createUnmarshaller();

…and then use the Marshaller and Unmarshaller instances to work serialize/deserialize the custom objects.

Since, it’s not a great idea to use the heavy-weight JAXB lib in mobile apps, I am looking for an alternative to do what JAXB does for me here.

I checked out Simple XML Serialization, but that doesn’t seem to provide this kind of functionality. I can only give a class to the unmarshaller instead of the schema definition path. Doing this results in an incomplete xml document, containing only the root element.

Can anyone point me in the right direction, please? Is this even possible? Should I use a different lib – which one? I am I just misusing SimpleXML?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:17:27+00:00Added an answer on May 28, 2026 at 3:17 pm

    Since I couldn’t find any better way (see comments to the original question), I decided to manually convert the Objects using the XML Pull API implementation included in Android.

    Here is a short tutorial on how to use it: http://www.ibm.com/developerworks/opensource/library/x-android/

    I’m not saying it’s a good way, but it’s the only thing I can think of that will work and where I don’t have to touch the original classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating an Android app (API 8) that need to receive a lot
I need a functionality in android app, that is similar to Gmail app in
I need to start building an Android app that uses the JUCE libraries. I'm
In my android app I need to display in a gridview images from a
I am working on an Android app and I need to make sure that
In android app, I need to dynamically generate html and load that into webview
In my Android app I need to extract data from a xml file (the
I need table with editable cells for my Android app. Something like QTableWidget in
I'm building a mobile web app targeting Android users. I need to know what
I created a native Android app that basically hosts a webView control. That webView

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.