You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Rick Rineholt (JIRA)" <tu...@ws.apache.org> on 2006/04/05 22:09:43 UTC

[jira] Created: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Java SDO generation from XML Schema needs schema validation.
------------------------------------------------------------

         Key: TUSCANY-152
         URL: http://issues.apache.org/jira/browse/TUSCANY-152
     Project: Tuscany
        Type: New Feature

  Components: Java SDO Implementation  
 Environment: SVN HEAD java
    Reporter: Rick Rineholt


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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472372 ] 

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

See also http://issues.apache.org/jira/browse/TUSCANY-477

> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Posted by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kelvin Goodson updated TUSCANY-152:
-----------------------------------

    Component/s:     (was: Java SDO Implementation)
                 Java SDO Tools

> 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 Tools
>         Environment: SVN HEAD java
>            Reporter: Rick Rineholt
>             Fix For: Java-SDO-Next
>
>
> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Commented: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Posted by "Yang ZHONG (JIRA)" <tu...@ws.apache.org>.
    [ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


[jira] Updated: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-152?page=all ]

Jean-Sebastien Delfino updated TUSCANY-152:
-------------------------------------------

    Fix Version: Mx
        Version: Mx

> Java SDO generation from XML Schema needs schema validation.
> ------------------------------------------------------------
>
>          Key: TUSCANY-152
>          URL: http://issues.apache.org/jira/browse/TUSCANY-152
>      Project: Tuscany
>         Type: New Feature

>   Components: Java SDO Implementation
>     Versions: Mx
>  Environment: SVN HEAD java
>     Reporter: Rick Rineholt
>      Fix For: 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-152) Java SDO generation from XML Schema needs schema validation.

Posted by "Rick Rineholt (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-152?page=comments#action_12373418 ] 

Rick Rineholt commented on TUSCANY-152:
---------------------------------------

This can be tough to catch.  Currently my suggestion is to take  WSDL or XML schema and use a third party tool to validate first.  While I don't think tuscany code needs to be held up to a standards that these specific tools do in showing errors; we should at least throw an error and some message.  

> Java SDO generation from XML Schema needs schema validation.
> ------------------------------------------------------------
>
>          Key: TUSCANY-152
>          URL: http://issues.apache.org/jira/browse/TUSCANY-152
>      Project: Tuscany
>         Type: New Feature

>   Components: Java SDO Implementation
>  Environment: SVN HEAD java
>     Reporter: Rick Rineholt

>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira