cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Norris (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-1414) cxf-codegen-plugin generates incomplete method signatures for operations with multiple faults defined
Date Mon, 04 Feb 2008 04:39:08 GMT

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

Ryan Norris updated CXF-1414:
-----------------------------

    Attachment: cxf1414-sample.zip

Have attached a sample project demonstrating this issue

> cxf-codegen-plugin generates incomplete method signatures for operations with multiple
faults defined
> -----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1414
>                 URL: https://issues.apache.org/jira/browse/CXF-1414
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0.4
>         Environment: MacOS 10.5, Eclipse, Maven 2.0.8
>            Reporter: Ryan Norris
>            Priority: Critical
>         Attachments: cxf1414-sample.zip
>
>
> When a WSDL defines multiple faults for a given operation, tooling fails to generate
a method signature with all defined faults as exceptions.  Only the last defined exception
is defined as part of the method signature for the operation.  Example:
>     <wsdl:operation name="addPlayerToTeam">
>       <wsdl:input message="baseball:addPlayerToTeamRequest"></wsdl:input>
>       <wsdl:fault name="fault"
>         message="baseball:teamNotFoundException">
>       </wsdl:fault>
>       <wsdl:output message="baseball:addPlayerToTeamResponse"></wsdl:output>
>       <wsdl:fault name="fault"
>         message="baseball:playerNotFoundException">
>       </wsdl:fault>
>     </wsdl:operation>
> Generates an incorrect method signature of:
>     @ResponseWrapper(localName = "addPlayerToTeamResponse", targetNamespace = "http://baseball/",
className = "baseball.AddPlayerToTeamResponse")
>     @RequestWrapper(localName = "addPlayerToTeam", targetNamespace = "http://baseball/",
className = "baseball.AddPlayerToTeam")
>     @WebResult(name = "contractId", targetNamespace = "")
>     @WebMethod
>     public int addPlayerToTeam(
>         @WebParam(name = "playerId", targetNamespace = "")
>         int playerId,
>         @WebParam(name = "teamId", targetNamespace = "")
>         int teamId
>     ) throws PlayerNotFoundException;

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


Mime
View raw message