Tuesday, June 26, 2012

AggregatedXmlMessageValidationException and inbound-gateway

I wrote a mediation layer with spring integration for a system. Mediation layer validates, transform, signs and encrypts given xml and then route it to required target.

However client is right to complain about the failure message for an xml which does not validate against the xsd schema. I am using validating-filter with spring integration and ws client recieves following message on xsd validation failure:




In order to fix that add an error channel to ws inbound such:



And finally the logger; it logs the detail of the problem to log and also returns it to client; so he/she can fix her code for given problem:



No comments:

Post a Comment