This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SchemaValidation and HandlerChains  RSS feed

David Steel
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have a WebService that stores the Envelope XML to a file using a MessageHandler referenced from a ChainHandler. I only want to save the data if the data is valid. If I use SchemaValidation and the data is not valid I get an appropriate response at the client, but the MessageHandler runs anyway. Is there a way to configure the SchemaValidation to stop the chain processing if invalid?

I cant find any info if one is fired before the other.

I am new to JAVA and I am using Netbeans 7.1 and Glassfish 3.1.1

Any help greatfully received

Follow up:

I believe that the only way to validate the message is creating a custom validator to process the message in the MessageHandler. Thats the way I went anyway.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!