This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Castor - ignore elements on Unmarshalling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Castor - ignore elements on Unmarshalling" Watch "Castor - ignore elements on Unmarshalling" New topic

Castor - ignore elements on Unmarshalling

Mina Daoud
Ranch Hand

Joined: Sep 24, 2010
Posts: 88
Hi Guys,

I have an issue with Castor and i would really appreciate any hint on how to solve it.
I am using Castor to unmarshall SOAP request with spring-ws. My XML request will be something like:

I have class called OrderRequest which i map those elements.
The problem i am facing is the element <OrderDetails> which is just complexType for reusing purposes.
so my code throw an error because Castor cannot find a property with the name orderDetails!! is there anyway to configure Castro to ignore this element?

Thanks for your help,
I agree. Here's the link:
subject: Castor - ignore elements on Unmarshalling
It's not a secret anymore!