Hopefully someone on this list can help me solve a problem I'm having with Axis 1.1


I have created a simple web service using style=document and have generated a WSDL file, serialize/deserialized etc. I can call it from C# and also from Java (stubs from WSDL2Java)... so the basic stuff is working great.

I would like to be able to validate the fields as the document arrives rather than having to write code in my java classes.. It seems like I should be able to provide an XSD to Axis and have it check against that before calling my class (on the server side). I can't however see how to do this.. maybe I'm just missing something..

I have seen people talking about putting this into the WSDL, but that seems like the wrong place to me in terms of validating. As more detail in describing the service fine, but putting it in the WSDL seems to leave it up to the stubs to check it which is bad. I tried this and WSDL2Java appears to generate stubs that do the checking (on the client), but .NET doesn't so no checking is done when calling from C#... not good.

Is there a way to have Axis on the server check the body in a Document/Literal type web service against an XML schema (xsd) ?
Hopefully someone can point me in the right direction.


Thanks

Roger

--
Roger May - eIT - Engineering
Email: [EMAIL PROTECTED]

You can't manufacture a miracle




Reply via email to