2 Replies Latest reply on Apr 6, 2009 10:55 AM by Kevin Conner

    Validation of incoming message

    Viral Shah Newbie

      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.