Skip to main content

Validation of WSDL

3 replies [Last post]
dhunter21
Offline
Joined: 2005-06-20

I'm sorry if this is an obvious question, but the answer escapes me.

How do I turn on xml validation of data being passed into a webservice with jax-ws?

What is the proper method of validating data on the client before it send to the server (using jax-ws)?

I can see how to turn it on in jax-b through the unmarshall-validate example, but since jax-ws handles all unmarshelling for me, I don't think I have access to this.

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohlert
Offline
Joined: 2003-06-16

There currently is no way to do this at this time.

dhunter21
Offline
Joined: 2005-06-20

Thanks doug, You mentioned before that it might be accomplished through a handler, which I will research. If this cannot be done, we might have to move to a different tool.

Does this seem like an odd request? How would most webservices want to handle validation of the data passed in? IOW, is there another way to solve this?

Thanks alot.

kohlert
Offline
Joined: 2003-06-16

I am not sure how this would be handled at this point. The fact the the message is able to be unmarshalled by JAX-WS does a good level of validation, but I realize that that might not be enough.

We will discuss this internally when we get a chance.