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 "Sascha Klose (JIRA)" <ji...@apache.org> on 2007/07/09 12:38:04 UTC
[jira] Updated: (AXIS2-990) XmlSchemaRedefine is not handled
[ https://issues.apache.org/jira/browse/AXIS2-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sascha Klose updated AXIS2-990:
-------------------------------
Priority: Critical (was: Major)
Affects Version/s: 1.2
> 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