axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyan Yurukov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-3159) Local types in schemes not supported
Date Thu, 06 Sep 2007 13:40:31 GMT

    [ 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


Mime
View raw message