The @SchemaValidation
annotation is defined by the
org.apache.cxf.annotations.SchemaValidation
interface. It is placed on the
SEI.
This annotation turns on schema validation of the XML messages sent to this endpoint. This can be useful for testing purposes, when you suspect there is a problem with the format of incoming XML messages. By default, validation is disabled, because it has a significant impact on performance.
Example 1.11 shows how to enable schema
validation of messages for endpoints based on the
HelloWorld
SEI.
Example 1.11. Activating schema validation
@WebService @SchemaValidation public interface HelloWorld { String sayHi(@WebParam(name = "text") String text); }