axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-66) [xsd:list] WSDL2Java doesn't handle schema <list> enumerations
Date Fri, 28 Jan 2005 15:35:17 GMT
     [ http://issues.apache.org/jira/browse/AXIS-66?page=comments#action_58224 ]
     
Hans commented on AXIS-66:
--------------------------

Is there any progress to report concerning support for xsd:list?
I had a look and it seems that:

- when itemType is set to a primitive type, an NPE is thrown;
- when itemType is set to a toplevel simpleType, a different NPE is thrown;
- when itemType is defined as a local anonymous simpleType the type is not mapped to an array
but to a class generated from the local simpleType.

I managed to create a simple fix for the 1st problem but before I put more effort in  a proper
fix I would like to know if anyone else is working on this...

> [xsd:list] WSDL2Java doesn't handle schema <list> enumerations
> --------------------------------------------------------------
>
>          Key: AXIS-66
>          URL: http://issues.apache.org/jira/browse/AXIS-66
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: beta-1
>  Environment: Operating System: Other
> Platform: All
>     Reporter: Kevin Dente
>     Assignee: Dominik Kacprzak

>
> Microsoft's .Net WSDL supports the notion of a bitmask enumeration, where 
> multiple enum values can be logically OR'd together (a very useful feature). In 
> C# this is generated using the Flags attribute on an enumerated type. The WSDL 
> that it spits out when you do this looks like:
> <s:simpleType name="MyFlags">
>   <s:list>
>    <s:simpleType>
>     <s:restriction base="s:string">
>      <s:enumeration value="Flag1" />
>      <s:enumeration value="Flag2" />
>      <s:enumeration value="Flag3" />
>     </s:restriction>
>    </s:simpleType>
>   </s:list>
> </s:simpleType>
> WSDL2Java doesn't handle this - it throws an exception when it encounters this 
> WSDL. The exception is:
> java.io.IOException: http://tempuri.org/:MyFlags already exists at
> org.apache.axis.wsdl.toJava.SymbolTable.symbolTablePut(Unknown Source)
>          at
> org.apache.axis.wsdl.toJava.SymbolTable.createTypeFromDef(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.addTypes(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.populateTypes(Unknown
> Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.populate(Unknown Source)
>          at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source)
>          at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
>          at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
>          at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(Unknown Source)
>          at java.lang.Thread.run(Thread.java:484)
> This seems like something that should really be supported.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message