Allow for custom ErrorHandler in PayloadValidatingInterceptor [SWS-242] #395
Validating a SOAP request or response with PayloadValidatingInterceptor or Jaxb2Marshaller fails when using MTOM.
The spring-ws MTOM sample fails when PayloadValidatingInterceptor is added to the endpoint interceptor chain.
Referenced from: commits ba2744a
The text was updated successfully, but these errors were encountered:
Esat Postaci commented
What about the suggested fix on this post.
Skip elements can be a workaround for this issue.
Arjen Poutsma commented
You can now provide your own error handler for the PayloadValidationInterceptor (which should implement org.springframework.xml.validation.ValidationErrorHandler). In that error handler, you can do anything you like (including skipping elements).
I did not provide a way to skip element by default, because it essentially comes down to stack-trace parsing, and I am reluctant to put fragile code like that in the SWS code base.