File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes SchemaValidation and HandlerChains Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SchemaValidation and HandlerChains" Watch "SchemaValidation and HandlerChains" New topic

SchemaValidation and HandlerChains

David Steel

Joined: Aug 07, 2012
Posts: 1
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.
I agree. Here's the link:
subject: SchemaValidation and HandlerChains