Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor - ignore elements on Unmarshalling

Mina Daoud
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic