This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
and when we ran JAXB bindings on main.xsd using maven plugin, it generated a class com.example.import.simpleResponseType.java
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 someResponse.java and it only generates simpleResponseType.java.
Is there any way to fix this problem, by not altering xsd as that is out of our control?