axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Fell (JIRA)" <>
Subject [jira] Created: (AXIS-1799) WSDL2Java generates name clashes now didn't in 1.1 or 1.2 RC1
Date Wed, 02 Feb 2005 18:41:17 GMT
WSDL2Java generates name clashes now didn't in 1.1 or 1.2 RC1

         Key: AXIS-1799
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2    
 Environment: XP / JDK 1.4.2_03
    Reporter: Simon Fell
    Priority: Critical
 Attachments: partner.wsdl

Somewhere between 1.2 RC1 and the 02/02/2005 CVS drop, I now get this error from the attached

org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: com\sforce\soap\partner\
Hint: you may have mapped two namespaces with elements of the same name to the same package
        at org.apache.axis.wsdl.toJava.JavaWriter.generate(
        at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(
        at org.apache.axis.wsdl.gen.Parser.generateTypes(
        at org.apache.axis.wsdl.gen.Parser.generate(
        at org.apache.axis.wsdl.gen.Parser.access$000(
        at org.apache.axis.wsdl.gen.Parser$
        at Source)

when run with the -a option.

I noticed 2 things, in Axis 1.1 -a only generates additional classes for elements from the
XSD schemas, and these would have a _XXXX class name. In Axis 1.2 -a also generates additional
classes that represent each request opreation as well. And somewhere post RC1 the naming of
the classes changed from _XXXX to XXXX, so now i get duplicates because there's an XSD type
called DescribeLayout and there's an operation called describeLayout (also note that is seems
to loose the fact that these are different by case).

So the attached WSDL which is usable by Axis 1.1, early versions of Axis 1.2, is not usable
by the latest CVS code. Either the genreation of classes for operations needs to be dropped,
or the naming change needs to be reverted. (which would also make moving existing code from
Axis 1.1 to use Axis 1.2 to be easier)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message