wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Castor - ignore elements on Unmarshalling" Watch "Castor - ignore elements on Unmarshalling" New topic
Author

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,
 
Don't get me started about those stupid light bulbs.
 
subject: Castor - ignore elements on Unmarshalling