[
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]