Oracle Weblogic Server (MOSC)

MOSC Banner

how to properly enable jax-ws schema validation in wls 12.1.3

edited Apr 14, 2016 8:36PM in Oracle Weblogic Server (MOSC)

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 + "'"; } }

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center