*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "SchemaValidation and HandlerChains" Watch "SchemaValidation and HandlerChains" New topic
Author

SchemaValidation and HandlerChains

David Steel
Greenhorn

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: http://aspose.com/file-tools
 
subject: SchemaValidation and HandlerChains
 
Similar Threads
Priority in Thread
Composition - instantiation versus parameter passed to Constructor
Metro JAX-WS @schemaValidation How to specify schemas instead of annotaion generated
Regular updates to table from network messages
two server and many client....