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 "Fabian Christ (JIRA)" <ji...@apache.org> on 2006/08/08 16:29:13 UTC

[jira] Created: (AXIS2-990) XmlSchemaRedefine is not handled

XmlSchemaRedefine is not handled
--------------------------------

                 Key: AXIS2-990
                 URL: http://issues.apache.org/jira/browse/AXIS2-990
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
            Reporter: Fabian Christ


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.
-
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

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-990) XmlSchemaRedefine is not handled

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ 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


[jira] Assigned: (AXIS2-990) XmlSchemaRedefine is not handled

Posted by "Deepal Jayasinghe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepal Jayasinghe reassigned AXIS2-990:
---------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> 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
>            Reporter: Fabian Christ
>         Assigned To: Amila Chinthaka Suriarachchi
>         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


[jira] Updated: (AXIS2-990) XmlSchemaRedefine is not handled

Posted by "Sascha Klose (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Resolved: (AXIS2-990) XmlSchemaRedefine is not handled

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved AXIS2-990.
------------------------------------

    Resolution: Won't Fix

> 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


[jira] Updated: (AXIS2-990) XmlSchemaRedefine is not handled

Posted by "Philbert POHU (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philbert POHU updated AXIS2-990:
--------------------------------

    Attachment: philbert_pohu.vcf

I don't understand the reason why il won't be fix ?

How can I resolve my problem with a wsdl which have "redefine"
and can't be treated by wsdl2java ?

Au revoir.
Philbert POHU


*****************************************************
"Le contenu de ce courriel et ses eventuelles pièces jointes sont confidentiels. Ils s'adressent exclusivement à la personne destinataire. Si cet envoi ne vous est pas destiné, ou si vous l'avez reçu par erreur, et afin de ne pas violer le secret des correspondances, vous ne devez pas le transmettre à d'autres personnes ni le reproduire. Merci de le renvoyer à l'émetteur et de le détruire.

Attention : L'Organisme de l'émetteur du message ne pourra être tenu responsable de l'altération du présent courriel. Il appartient au destinataire de vérifier que les messages et pièces jointes reçus ne contiennent pas de virus. Les opinions contenues dans ce courriel et ses éventuelles pièces jointes sont celles de l'émetteur. Elles ne reflètent pas la position de l'Organisme sauf s'il en est disposé autrement dans le présent courriel."
******************************************************


> 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: philbert_pohu.vcf, 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