axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-990) XmlSchemaRedefine is not handled
Date Mon, 03 Mar 2008 17:50:50 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574625#action_12574625
] 

Davanum Srinivas commented on AXIS2-990:
----------------------------------------

Looks like we won't be fixing this issue.

> XmlSchemaRedefine is not handled
> --------------------------------
>
>                 Key: AXIS2-990
>                 URL: https://issues.apache.org/jira/browse/AXIS2-990
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>            Reporter: Fabian Christ
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>         Attachments: sample-wsdl.zip
>
>
> If you use redefine statements in a XSD that is used in a WSDL file - these redefines
are not handled by the SchemaCompiler. The result is that redefined elements are not found
by the TypeMappingAdapter because the so included XSD is not processed.
> In org.apache.axis2.schema.SchemaCompiler.compile(XmlSchema, boolean) you find (latest
SVN)
>         XmlSchemaObjectCollection includes = schema.getIncludes();
>         if (includes != null) {
>             Iterator tempIterator = includes.getIterator();
>             while (tempIterator.hasNext()) {
>                 Object o = tempIterator.next();
>                 if (o instanceof XmlSchemaImport) {
>                     XmlSchema schema1 = ((XmlSchemaImport) o).getSchema();
>                     if (schema1 != null) compile(schema1,isPartofGroup);
>                 }
>                 if (o instanceof XmlSchemaInclude) {
>                     XmlSchema schema1 = ((XmlSchemaInclude) o).getSchema();
>                     if (schema1 != null) compile(schema1,isPartofGroup);
>                 }
>             }
>         }
> A redefine is a kind of include an should be handled in the while loop with something
like
>                 if (o instanceof XmlSchemaRedefine) {
>                 	XmlSchema schema1 = ((XmlSchemaRedefine) o).getSchema();
>                 	if (schema1 != null) compile(schema1,isPartofGroup);
>                 }
> HavenĀ“t tested this solution yet!

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


Mime
View raw message