You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Klaus Mueller (JIRA)" <ax...@ws.apache.org> on 2005/02/14 22:08:11 UTC

[jira] Created: (AXIS-1816) WSDL2Java fails to create java code

WSDL2Java fails to create java code
-----------------------------------

         Key: AXIS-1816
         URL: http://issues.apache.org/jira/browse/AXIS-1816
     Project: Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.2RC2    
 Environment: Windows 2000
    Reporter: Klaus Mueller


Schema includes two complex type declarations:
<xsd:complexType name="GeneticCodeType">...
and
<xsd:complexType name="Genetic-codeType">...

WSDL2Java tries to create source files with the same name (GeneticCodeType.java) for the both classes and generates the following error:


org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: GeneticCodeType.java.
Hint: you may have mapped two namespaces with elements of the same name to the same package name.




-- 
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


[jira] Resolved: (AXIS-1816) WSDL2Java fails to create java code

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1816?page=all ]
     
Davanum Srinivas resolved AXIS-1816:
------------------------------------

    Resolution: Won't Fix

Klaus,

2 ComplexTypes result in the same java class name according to the algorithm specified in JAXRPC 1.1 (Chapter 20 Appendix: Mapping of XML Names). So you would have to modify the wsdl/xsd. See especially table 20-2.

thanks,
dims

> WSDL2Java fails to create java code
> -----------------------------------
>
>          Key: AXIS-1816
>          URL: http://issues.apache.org/jira/browse/AXIS-1816
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Windows 2000
>     Reporter: Klaus Mueller

>
> Schema includes two complex type declarations:
> <xsd:complexType name="GeneticCodeType">...
> and
> <xsd:complexType name="Genetic-codeType">...
> WSDL2Java tries to create source files with the same name (GeneticCodeType.java) for the both classes and generates the following error:
> org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: GeneticCodeType.java.
> Hint: you may have mapped two namespaces with elements of the same name to the same package name.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1816) WSDL2Java fails to create java code

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1816?page=comments#action_59184 ]
     
Tom Jordahl commented on AXIS-1816:
-----------------------------------

Can you check the behavior of the current CVS source?  I recently (2 weeks) made a change to enable better duplicate type checking in 1.2 post RC2.  Thanks.


> WSDL2Java fails to create java code
> -----------------------------------
>
>          Key: AXIS-1816
>          URL: http://issues.apache.org/jira/browse/AXIS-1816
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Windows 2000
>     Reporter: Klaus Mueller

>
> Schema includes two complex type declarations:
> <xsd:complexType name="GeneticCodeType">...
> and
> <xsd:complexType name="Genetic-codeType">...
> WSDL2Java tries to create source files with the same name (GeneticCodeType.java) for the both classes and generates the following error:
> org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: GeneticCodeType.java.
> Hint: you may have mapped two namespaces with elements of the same name to the same package name.

-- 
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


[jira] Commented: (AXIS-1816) WSDL2Java fails to create java code

Posted by "Klaus Mueller (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1816?page=comments#action_59228 ]
     
Klaus Mueller commented on AXIS-1816:
-------------------------------------

I tried the version from cvs and it failed with the same error message.
The test wsdl is here:
http://web.ncbi.nlm.nih.gov/entrez/eutils/soap/efetch.wsdl

Thank you.



> WSDL2Java fails to create java code
> -----------------------------------
>
>          Key: AXIS-1816
>          URL: http://issues.apache.org/jira/browse/AXIS-1816
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2RC2
>  Environment: Windows 2000
>     Reporter: Klaus Mueller

>
> Schema includes two complex type declarations:
> <xsd:complexType name="GeneticCodeType">...
> and
> <xsd:complexType name="Genetic-codeType">...
> WSDL2Java tries to create source files with the same name (GeneticCodeType.java) for the both classes and generates the following error:
> org.apache.axis.wsdl.toJava.DuplicateFileException: Duplicate file name: GeneticCodeType.java.
> Hint: you may have mapped two namespaces with elements of the same name to the same package name.

-- 
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