This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Spring and the fly likes Unable to unmarshall the webservice response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Unable to unmarshall the webservice response " Watch "Unable to unmarshall the webservice response " New topic

Unable to unmarshall the webservice response

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 519

Hi All,

We have a schema similar to what given below

and let us assume that the above definition is in main.xsd with namespace and simpleInfo:simpleResponse_Type is defined in some other xsd called import.xsd with the namespace

and when we ran JAXB bindings on main.xsd using maven plugin, it generated a class

now, in our webservice application context, I need to define oxm:jaxb2-marshaller and I have something like below

But the actual xml response looks as below

</Body>Now, since while unmarshalling it encounters <someResponse> instead of <simpleResponseType> , it is throwing exception. Which makes sense ? but JAXB did not generate any and it only generates

Is there any way to fix this problem, by not altering xsd as that is out of our control?



wood burning stoves
subject: Unable to unmarshall the webservice response