Skip to main content

only enable incoming WS schema validation

1 reply [Last post]
jzmaverick
Offline
Joined: 2009-09-25

Hi,

When enabling XML schema validation for a Web Service endpoint, is there anyway to ONLY enable validation for incoming messages? Using @SchemaValidation annotation seems always enable for both incoming and outgoing msgs. For performance reason, we'd like to only enable one way.

We are using Glassfish with Metro 2.1.3, it seems that they obsolete TubeFactory class, I am not sure how to insert a custom version of ServerSchemaValidationTube.

Any suggestions?

Thanks,
Julia

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
7obi
Offline
Joined: 2010-07-22

Hi Julia,

I've got nearly the same problem. I tried to insert a custom ServerSchemaValidationTube as described in this article:

http://weblogs.java.net/blog/2007/02/02/tubes-jax-ws-21

Didn't work for me...