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 6904475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:03:58+00:00 2026-05-27T08:03:58+00:00

Currently in the application we get a SOAP response xml with namespace attached to

  • 0

Currently in the application we get a SOAP response xml with namespace attached to each element. I have hard coded into my code that the namespaces are ignored because the application wants clean xml. But upon testing it is being deemed a weak solution because the namespace might change in the future.
It has been recommended to me to use jaxb. I am using xtream currently because we can directly read xml. So I have started looking into jaxb. But jaxb requires xsd. I have understood the process but I am not sure how to implement Jaxb in my application because I am getting an xml response.
So, my question Is it possible to replace xtream with jaxb in this situation?
thanks

  • 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-27T08:03:58+00:00Added an answer on May 27, 2026 at 8:03 am

    Note: I’m the EclipseLink JAXB (MOXy) lead and a member of the JAXB 2 (JSR-222) expert group.

    I am using xtream currently because we can directly read xml. So I
    have started looking into jaxb. But jaxb requires xsd.

    It is a common misconception that JAXB requires an XML schema (it’s even on the XStream FAQ). The truth is that JAXB was designed to start from objects and provides an option to generate annotated object models from an XML schema(s). This is very useful when dealing with large XML schemas:

    • http://wiki.eclipse.org/EclipseLink/Examples/MOXy/GettingStarted

    Currently in the application we get a SOAP response xml with namespace
    attached to each element. I have hard coded into my code that the
    namespaces are ignored because the application wants clean xml. But
    upon testing it is being deemed a weak solution because the namespace
    might change in the future.

    JAXB has very good support for mapping namespaces. This can be done at the package level with @XmlSchema, the class level with @XmlType, or the field/property level with @XmlAttribute/@XmlElement:

    • http://blog.bdoughan.com/2010/08/jaxb-namespaces.html

    I have understood the process but I am not sure how to implement Jaxb
    in my application because I am getting an xml response

    Below is a link to an article that maps the same object model to the same XML document using both JAXB and XStream. It will give you a feel for how some of the concepts relate:

    • http://blog.bdoughan.com/2010/10/how-does-jaxb-compare-to-xstream.html

    Another thing note is that JAXB refers to a standard (JSR-222) and not a specific implementation. There are actually several implementations including:

    • EclipseLink MOXy
    • Metro (the reference implementation)
    • Apache JaxMe
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently developing a little ecommerce application to help me get to grips
I have an application (currently written in Python as we iron out the specifics
I have a ASP.NET Web Forms application that internally makes many SOAP and REST
Currently my application uses string[] subdirs = Directory.GetDirectories(path) to get the list of subdirectories,
I have a spring web application (currently packaged as a war file) which I
I have to access a existing SOAP webservice from an Android application. I have
How to get currently running application without using a system process?
My Python application currently uses the python-memcached API to set and get objects in
I have an application which get copied and run on client machines. The program
I currently have a web based application which strictly relies on a 3rd party

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.