axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkat Reddy (JIRA)" <>
Subject [jira] Commented: (AXIS-1799) WSDL2Java generates name clashes now didn't in 1.1 or 1.2 RC1
Date Thu, 03 Feb 2005 15:46:17 GMT
     [ ]
Venkat Reddy commented on AXIS-1799:


I think that, the resolveNameClashes can't handle even non-types if their qnames differ only
in case. For example, if we have two portType elements with same namespace but with local
names differing only in case.

My understanding is - resolveNameClashes works if the resolution is needed between different
kinds of elements, like between a service and a port type element, AND their qnames are identical.

The test case fails to satisfy both the conditions.


> WSDL2Java generates name clashes now didn't in 1.1 or 1.2 RC1
> -------------------------------------------------------------
>          Key: AXIS-1799
>          URL:
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2
>  Environment: XP / JDK 1.4.2_03
>     Reporter: Simon Fell
>     Assignee: Venkat Reddy
>     Priority: Critical
>  Attachments: partner.wsdl, sf.wsdl
> Somewhere between 1.2 RC1 and the 02/02/2005 CVS drop, I now get this error from the
attached WSDL
> 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