Class PayloadValidatingInterceptor

All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ClientInterceptor

public class PayloadValidatingInterceptor extends AbstractValidatingInterceptor
Client-side interceptor that validates the contents of WebServiceMessages using a schema. Allows for both W3C XML and RELAX NG schemas.

When the payload is invalid, this interceptor stops processing of the interceptor chain.

The schema to validate against is set with the schema property or schemas property. By default, only the request message is validated, but this behaviour can be changed using the validateRequest and validateResponse properties. Responses that contains faults are not validated.

Stefan Schmidt, Arjen Poutsma
See Also:
  • Constructor Details

    • PayloadValidatingInterceptor

      public PayloadValidatingInterceptor()
  • Method Details