Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Delivered-To: moderator for axis-user@xml.apache.org Received: (qmail 92274 invoked from network); 17 Apr 2002 23:31:35 -0000 Received: from maynard.mail.mindspring.net (207.69.200.243) by daedalus.apache.org with SMTP; 17 Apr 2002 23:31:35 -0000 Received: from user-vcaultc.dsl.mindspring.com ([216.175.87.172] helo=kdmain) by maynard.mail.mindspring.net with smtp (Exim 3.33 #1) id 16xytm-0004Vd-00 for axis-user@xml.apache.org; Wed, 17 Apr 2002 19:31:38 -0400 From: "Kevin D" To: Subject: Axis beta 1 interop with .Net [Flags] (WSDL2Java) Date: Wed, 17 Apr 2002 16:32:36 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I created a doc/literal web service using .Net which uses an [Flags] style enumeration, which is basically an enum which consists of flags that can be bitwise-OR'd together. In C# you declare this as: [Flags] public enum MyFlags { Flag1 = 1, Flag2 = 2, Flag3 = 4 } The generated WSDL for this type looks like this: When I try running WSDL2Java on the web service, it barfs. 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) (sorry if that word-wraps poorly). If I use a regular enumeration, it all works fine. The WSDL looks like this: Note the absence of the element. Anybody know why this doesn't work? It should work, shouldn't it? Kevin