[ 
https://issues.apache.org/jira/browse/TUSCANY-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472371
 ] 

Yang ZHONG commented on TUSCANY-152:
------------------------------------

Validation impacts performance for most cases where XSDs are valid.
On the other hand, the spec doesn't require validation.

However, I agree error/warning(s) should be reported.
The spec doesn't specify option(s) or API to report error/warning(s), and I'm 
not sure all users desire exception.
How about logging to report error/warning(s)?

> Java SDO generation from XML Schema needs schema validation.
> ------------------------------------------------------------
>
>                 Key: TUSCANY-152
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-152
>             Project: Tuscany
>          Issue Type: New Feature
>          Components: Java SDO Implementation
>    Affects Versions: Java-SCA-Mx
>         Environment: SVN HEAD java
>            Reporter: Rick Rineholt
>             Fix For: Java-SDO-Mx
>
>
> Using the generation through the WSDL tool it appears the XML schema can have 
> invalid schema and still the generator produces code. The particular case I 
> had was the an element that had this case 
> <element name="foo" type="tns:bar />
> <element  name='bar' >...</element>
> Note for it to be valid the bar should have been a complexType.  The code 
> generated seem to create a Foo that was java.lang.Object.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to