@Retention(value=RUNTIME) @Target(value={TYPE,METHOD,FIELD}) @Documented @WebServiceFeatureAnnotation(id="http://jax-ws.dev.java.net/features/schema-validation", bean=SchemaValidationFeature.class) public @interface SchemaValidation
WebService
against the XML schema. To use this feature, annotate the endpoint class with
this annotation.
for e.g.: @WebService @SchemaValidation public class HelloImpl { ... }At present, schema validation works for doc/lit web services only.
SchemaValidationFeature
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends ValidationErrorHandler> |
handler
Configure the validation behaviour w.r.t error handling.
|
boolean |
inbound
Turns validation on/off for inbound messages
|
boolean |
outbound
Turns validation on/off for outbound messages
|
public abstract Class<? extends ValidationErrorHandler> handler
ValidationErrorHandler
.public abstract boolean inbound
public abstract boolean outbound
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.