[jboss-dev-forums] [Design of JBoss ESB] - Validation of incoming message
viralshah72
do-not-reply at jboss.com
Mon Apr 6 09:06:49 EDT 2009
1. Is validating the incoming message to ESB a standard/best practice or it should not be done?
2. We are having a existing webservice exposed as a proxyservice via HTTP router. The client is calling the proxy webservice. We need to validate the incoming XML using Schema.
3. Tried using the inbuilt SchemaValidationAction
like
When valdiation is failing it is generating Exception which is directly getting shown on JBOSS console.
17:53:59,321 ERROR [SchemaValidationAction] SAXExcption while trying to validate against schema '/re
quest.xsd'
org.xml.sax.SAXParseException: cvc-datatype-valid.1.2.1: 'somestring' is not a valid value for 'integer'.
at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109.....
Question is how to and where to catch this exception ? Since this is inbuilt action, when & where in the actionpipeline can we catch the validation exception so that required steps can be taken.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223664#4223664
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223664
More information about the jboss-dev-forums
mailing list