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 "Boyan Yurukov (JIRA)" <ji...@apache.org> on 2007/08/29 15:15:31 UTC

[jira] Created: (AXIS2-3159) Local types in schemes not supported

Local types in schemes not supported
------------------------------------

                 Key: AXIS2-3159
                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.2, 1.3
         Environment: Windows XP SP2, Tomcat 5.5
            Reporter: Boyan Yurukov
            Priority: Critical


I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.

Here are some examples:

>>>>>>>>Original Schema
<complexType name="ResponseOptionType">
    <attribute default="RegistryObject" name="returnType">
      <simpleType>
        <restriction base="NCName">
          <enumeration value="ObjectRef"/>
          <enumeration value="RegistryObject"/>
          <enumeration value="LeafClass"/>
          <enumeration value="LeafClassWithRepositoryItem"/>
        </restriction>
      </simpleType>
    </attribute>
    <attribute default="false" name="returnComposedObjects" type="boolean"/>
  </complexType>

>>>>>>>>Axis2-generated Schema
<complexType name="ResponseOptionType">
        <attribute default="RegistryObject" name="returnType">
            <simpleType name="returnType_type0">
                <restriction base="NCName">
                    <enumeration value="ObjectRef"/>
                    <enumeration value="RegistryObject"/>
                    <enumeration value="LeafClass"/>
                    <enumeration value="LeafClassWithRepositoryItem"/>
                </restriction>
            </simpleType>
        </attribute>
        <attribute default="false" name="returnComposedObjects" type="boolean"/>
    </complexType>

-------------------------------------------------------------

>>>>>>>>Original Schema
<element name="RegistryError">
    <complexType>
      <simpleContent>
        <extension base="string">
          <attribute name="codeContext" type="string" use="required"/>
          <attribute name="errorCode" type="string" use="required"/>
          <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
          <attribute name="location" type="string" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

>>>>>>>>Axis2-generated Schema
<element name="RegistryError" type="tns:RegistryError_type0"/>
>>> and RegistryError_type0 is not defined anywhere


I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.


-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Attachment: rs_original.xsd

The original name was "rs.xsd". The third example code was taken from here.

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Description: 
I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.

Here are some examples:

>>>>>>>>Original Schema [rs_original.xsd]
<complexType name="ResponseOptionType">
    <attribute default="RegistryObject" name="returnType">
      <simpleType>
        <restriction base="NCName">
          <enumeration value="ObjectRef"/>
          <enumeration value="RegistryObject"/>
          <enumeration value="LeafClass"/>
          <enumeration value="LeafClassWithRepositoryItem"/>
        </restriction>
      </simpleType>
    </attribute>
    <attribute default="false" name="returnComposedObjects" type="boolean"/>
  </complexType>

>>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
<complexType name="ResponseOptionType">
        <attribute default="RegistryObject" name="returnType">
            <simpleType name="returnType_type0">
                <restriction base="NCName">
                    <enumeration value="ObjectRef"/>
                    <enumeration value="RegistryObject"/>
                    <enumeration value="LeafClass"/>
                    <enumeration value="LeafClassWithRepositoryItem"/>
                </restriction>
            </simpleType>
        </attribute>
        <attribute default="false" name="returnComposedObjects" type="boolean"/>
    </complexType>

-------------------------------------------------------------

>>>>>>>>Original Schema [query_original.xsd]
<element name="RegistryError">
    <complexType>
      <simpleContent>
        <extension base="string">
          <attribute name="codeContext" type="string" use="required"/>
          <attribute name="errorCode" type="string" use="required"/>
          <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
          <attribute name="location" type="string" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

>>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
<element name="RegistryError" type="tns:RegistryError_type0"/>
>>> and RegistryError_type0 is not defined anywhere


I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.


  was:
I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.

Here are some examples:

>>>>>>>>Original Schema
<complexType name="ResponseOptionType">
    <attribute default="RegistryObject" name="returnType">
      <simpleType>
        <restriction base="NCName">
          <enumeration value="ObjectRef"/>
          <enumeration value="RegistryObject"/>
          <enumeration value="LeafClass"/>
          <enumeration value="LeafClassWithRepositoryItem"/>
        </restriction>
      </simpleType>
    </attribute>
    <attribute default="false" name="returnComposedObjects" type="boolean"/>
  </complexType>

>>>>>>>>Axis2-generated Schema
<complexType name="ResponseOptionType">
        <attribute default="RegistryObject" name="returnType">
            <simpleType name="returnType_type0">
                <restriction base="NCName">
                    <enumeration value="ObjectRef"/>
                    <enumeration value="RegistryObject"/>
                    <enumeration value="LeafClass"/>
                    <enumeration value="LeafClassWithRepositoryItem"/>
                </restriction>
            </simpleType>
        </attribute>
        <attribute default="false" name="returnComposedObjects" type="boolean"/>
    </complexType>

-------------------------------------------------------------

>>>>>>>>Original Schema
<element name="RegistryError">
    <complexType>
      <simpleContent>
        <extension base="string">
          <attribute name="codeContext" type="string" use="required"/>
          <attribute name="errorCode" type="string" use="required"/>
          <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
          <attribute name="location" type="string" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

>>>>>>>>Axis2-generated Schema
<element name="RegistryError" type="tns:RegistryError_type0"/>
>>> and RegistryError_type0 is not defined anywhere


I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.



I added a comment to each example showing from which of the attached files it was taken from.

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema [rs_original.xsd]
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema [query_original.xsd]
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Comment: was deleted

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Comment: was deleted

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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] Commented: (AXIS2-3159) Local types in schemes not supported

Posted by "Boyan Yurukov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525420 ] 

Boyan Yurukov commented on AXIS2-3159:
--------------------------------------

I am using one of the latest snapshot builds. There were some custom jars, so I tried it with the official build and the result was the same. 

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema [query_original.xsd]
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema [rs_original.xsd]
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Attachment: rs_axis2-generated.xsd

The name it was generated with was "xsd0.xsd". The fourth example code was taken from here.

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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] Commented: (AXIS2-3159) Local types in schemes not supported

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12523763 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-3159:
-----------------------------------------------------

This problem was there with the Axis2 1.2 but I fixed for axis2 1.3. I tested with the Axis2 trunk and it works fine. Can you test with the Axis2 1.3 release?

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema [rs_original.xsd]
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema [query_original.xsd]
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Attachment: query_axis2-generated.xsd

The name it was generated with was "xsd5.xsd". The second example code was taken from here.

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Amila Chinthaka Suriarachchi resolved AXIS2-3159.
-------------------------------------------------

    Resolution: Fixed

fixed in the nighly builds

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema [query_original.xsd]
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema [rs_original.xsd]
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Description: 
I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.

Here are some examples:

>>>>>>>>Original Schema [query_original.xsd]
<complexType name="ResponseOptionType">
    <attribute default="RegistryObject" name="returnType">
      <simpleType>
        <restriction base="NCName">
          <enumeration value="ObjectRef"/>
          <enumeration value="RegistryObject"/>
          <enumeration value="LeafClass"/>
          <enumeration value="LeafClassWithRepositoryItem"/>
        </restriction>
      </simpleType>
    </attribute>
    <attribute default="false" name="returnComposedObjects" type="boolean"/>
  </complexType>

>>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
<complexType name="ResponseOptionType">
        <attribute default="RegistryObject" name="returnType">
            <simpleType name="returnType_type0">
                <restriction base="NCName">
                    <enumeration value="ObjectRef"/>
                    <enumeration value="RegistryObject"/>
                    <enumeration value="LeafClass"/>
                    <enumeration value="LeafClassWithRepositoryItem"/>
                </restriction>
            </simpleType>
        </attribute>
        <attribute default="false" name="returnComposedObjects" type="boolean"/>
    </complexType>

-------------------------------------------------------------

>>>>>>>>Original Schema [rs_original.xsd]
<element name="RegistryError">
    <complexType>
      <simpleContent>
        <extension base="string">
          <attribute name="codeContext" type="string" use="required"/>
          <attribute name="errorCode" type="string" use="required"/>
          <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
          <attribute name="location" type="string" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

>>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
<element name="RegistryError" type="tns:RegistryError_type0"/>
>>> and RegistryError_type0 is not defined anywhere


I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.


  was:
I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.

Here are some examples:

>>>>>>>>Original Schema [rs_original.xsd]
<complexType name="ResponseOptionType">
    <attribute default="RegistryObject" name="returnType">
      <simpleType>
        <restriction base="NCName">
          <enumeration value="ObjectRef"/>
          <enumeration value="RegistryObject"/>
          <enumeration value="LeafClass"/>
          <enumeration value="LeafClassWithRepositoryItem"/>
        </restriction>
      </simpleType>
    </attribute>
    <attribute default="false" name="returnComposedObjects" type="boolean"/>
  </complexType>

>>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
<complexType name="ResponseOptionType">
        <attribute default="RegistryObject" name="returnType">
            <simpleType name="returnType_type0">
                <restriction base="NCName">
                    <enumeration value="ObjectRef"/>
                    <enumeration value="RegistryObject"/>
                    <enumeration value="LeafClass"/>
                    <enumeration value="LeafClassWithRepositoryItem"/>
                </restriction>
            </simpleType>
        </attribute>
        <attribute default="false" name="returnComposedObjects" type="boolean"/>
    </complexType>

-------------------------------------------------------------

>>>>>>>>Original Schema [query_original.xsd]
<element name="RegistryError">
    <complexType>
      <simpleContent>
        <extension base="string">
          <attribute name="codeContext" type="string" use="required"/>
          <attribute name="errorCode" type="string" use="required"/>
          <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
          <attribute name="location" type="string" use="optional"/>
        </extension>
      </simpleContent>
    </complexType>
  </element>

>>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
<element name="RegistryError" type="tns:RegistryError_type0"/>
>>> and RegistryError_type0 is not defined anywhere


I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.



> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema [query_original.xsd]
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema [query_axis2-generated.xsd]
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema [rs_original.xsd]
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema [rs_axis2-generated.xsd]
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Attachment: query_original.xsd

The original name was "query.xsd". The first example code was taken from here.

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Comment: was deleted

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

-- 
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-3159) Local types in schemes not supported

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

Boyan Yurukov updated AXIS2-3159:
---------------------------------

    Comment: was deleted

> Local types in schemes not supported
> ------------------------------------
>
>                 Key: AXIS2-3159
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3159
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.3, 1.2
>         Environment: Windows XP SP2, Tomcat 5.5
>            Reporter: Boyan Yurukov
>            Priority: Critical
>         Attachments: query_axis2-generated.xsd, query_original.xsd, rs_axis2-generated.xsd, rs_original.xsd
>
>
> I am trying to generate a web service from a wsdl that imports several schemes. Most of the schema types are global, but some a local. What happens is that in the schemes I get after the code generation, Those local types get names like "XXX_type0". If they are complexType, they are deleted altogether and swapped with references, but the type itself is not added anywhere in the schema. The same inconsistencies can be seen in the genereated code.
> Here are some examples:
> >>>>>>>>Original Schema
> <complexType name="ResponseOptionType">
>     <attribute default="RegistryObject" name="returnType">
>       <simpleType>
>         <restriction base="NCName">
>           <enumeration value="ObjectRef"/>
>           <enumeration value="RegistryObject"/>
>           <enumeration value="LeafClass"/>
>           <enumeration value="LeafClassWithRepositoryItem"/>
>         </restriction>
>       </simpleType>
>     </attribute>
>     <attribute default="false" name="returnComposedObjects" type="boolean"/>
>   </complexType>
> >>>>>>>>Axis2-generated Schema
> <complexType name="ResponseOptionType">
>         <attribute default="RegistryObject" name="returnType">
>             <simpleType name="returnType_type0">
>                 <restriction base="NCName">
>                     <enumeration value="ObjectRef"/>
>                     <enumeration value="RegistryObject"/>
>                     <enumeration value="LeafClass"/>
>                     <enumeration value="LeafClassWithRepositoryItem"/>
>                 </restriction>
>             </simpleType>
>         </attribute>
>         <attribute default="false" name="returnComposedObjects" type="boolean"/>
>     </complexType>
> -------------------------------------------------------------
> >>>>>>>>Original Schema
> <element name="RegistryError">
>     <complexType>
>       <simpleContent>
>         <extension base="string">
>           <attribute name="codeContext" type="string" use="required"/>
>           <attribute name="errorCode" type="string" use="required"/>
>           <attribute default="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error" name="severity" type="rim:referenceURI" />
>           <attribute name="location" type="string" use="optional"/>
>         </extension>
>       </simpleContent>
>     </complexType>
>   </element>
> >>>>>>>>Axis2-generated Schema
> <element name="RegistryError" type="tns:RegistryError_type0"/>
> >>> and RegistryError_type0 is not defined anywhere
> I guess that is I make all types - both simple and complex - global it would work, but still the schema will be still changed.

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