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:13:44 UTC

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

    [ 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