[ 
https://issues.apache.org/jira/browse/CXF-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Kulp resolved CXF-2259.
------------------------------

       Resolution: Invalid
    Fix Version/s: Invalid


Actually, 2.1.4 was NOT generating usable code.   The returns for some of the 
methods was not correct and thus the client would not be able to use some of 
the methods.   

The 2.1.5/2.2.x behavior is correct per spec.   Per spec, you would need a jaxb 
customization binding file to resolve the name conflicts.

You can use the -autoNameResolution flag to wsdl2java to resolve the conflict 
automatically.



> Code generation results for version 2.1.4(ok) vs 2.1.5 and 2.2.x(exception) 
> differ
> ----------------------------------------------------------------------------------
>
>                 Key: CXF-2259
>                 URL: https://issues.apache.org/jira/browse/CXF-2259
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.1.5, 2.2.1, 2.2.2
>         Environment: maven, cxf-codegen-plugin
>            Reporter: Gena Ganebnyi
>             Fix For: Invalid
>
>         Attachments: 2009-04-04.ec2.wsdl
>
>
> When generating java code from amazon ec2 wsdl with cxf-codegen-plugin, 
> versions 2.1.5 and 2.2.x, generation fails with the following message: 
> Parameter: imagesSet already exists for method describeImages but of type 
> com.amazonaws.ec2.doc._2009_04_04.DescribeImagesInfoType instead of 
> com.amazonaws.ec2.doc._2009_04_04.DescribeImagesResponseInfoType.  Use a 
> JAXWS/JAXB binding customization to rename the parameter.
> Changing version to 2.1.4 solves this problem. Generated code is valid and 
> compiles successfully.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to