how to properly enable jax-ws schema validation in wls 12.1.3
From this link https://docs.oracle.com/cd/E24329_01/web.1211/e24964/jws.htm#WSGET176 it states:
Enabling Schema Validation on the Server
Note:
The com.sun.xml.ws.developer.SchemaValidation
API is supported as an extension to the JDK 6.0. Because this API is not provided as part of the JDK 6.0 kit, it is subject to change.
To enable schema validation on the server, add the @SchemaValidation
annotation on the endpoint implementation. For example:
import com.sun.xml.ws.developer.SchemaValidation; import javax.jws.WebService; @SchemaValidation @WebService(name="HelloWorldPortType", serviceName="HelloWorldService") public class HelloWorldImpl { public String sayHelloWorld(String message) { System.out.println("sayHelloWorld:" + message); return "Here is the message: '" + message + "'"; } }