You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Tom Jordahl <to...@macromedia.com> on 2004/01/19 23:33:03 UTC

RE: WSDL Generated Code produce 100% Schema Conformant Document S tyle Payloads

 

Tony,

 

Axis does not do XML Schema validation on the incoming packets, it simply
tries to deserialize them.  This generally will fail if the XML isn't what
is expected, but restrictions are not enforced, for instance a number
defined to be 1 thru 5 in the schema will not throw an error if the
deserializer finds a value of 7.

 

On the other hand, Axis will never emit WSDL with this kind of Schema in it.

 

--

Tom Jordahl

 

 

  _____  

From: Tony Opatha [mailto:topatha@yahoo.com] 
Sent: Friday, January 16, 2004 2:57 PM
To: axis-dev@ws.apache.org
Cc: axis-user@ws.apache.org
Subject: WSDL Generated Code produce 100% Schema Conformant Document Style
Payloads

 

  

In AXIS 1.1 if we use Doc/Lit option then will the XSD schemas based WSDL
generated Java server-side skeleton code always produce schema conforming
XML instances in 

response messages and always be able detect invalid request message payloads
when the corresponding (schema-based) generated code deserializes request
messages. 

 

  

Could there may be some edge cases where schema generated 

Java code (depending upon the WSDL compiler) may not be able to 

detect invalid XML values in message payloads instances that are not

100% conformant to the XML Schema for Document Style messages?

 

Thanks

  _____  

Do you Yahoo!?
Yahoo! Hotjobs: Enter
<http://pa.yahoo.com/*http:/us.rd.yahoo.com/hotjobs/mail_footer_email/evt=21
482/*http:/hotjobs.sweepstakes.yahoo.com/signingbonus>  the "Signing Bonus"
Sweepstakes