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.