I am using Spring WS to build web services, and I would like to validate the incoming payload XML with the XSD. I have a requirement where I need to identify the entities which fail validation and provide a custom fault with a custom error code for the respective validation failure.

Thanks in advance.