You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2019/12/05 17:25:00 UTC

[jira] [Resolved] (CXF-8146) wsdl2java generate incorrect annotations when declared multiple faults

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

Colm O hEigeartaigh resolved CXF-8146.
--------------------------------------
    Resolution: Not A Problem

I don't think this is a bug, It doesn't include HelloException in this example as it doesn't have a Action in the WSDL. If I change it to:
{code:java}
<wsdl:fault message="tns:HelloException" name="HelloException" wsaw:Action="foo">
{code}
I get:
{code:java}
@Action(fault = {@FaultAction(className = HelloException_Exception.class, value = "foo"), @FaultAction(className = ActionException_Exception.class, value = "test")})
{code}
I don't think it's correct to include it if there is no Action.

> wsdl2java generate incorrect annotations when declared multiple faults
> ----------------------------------------------------------------------
>
>                 Key: CXF-8146
>                 URL: https://issues.apache.org/jira/browse/CXF-8146
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.3.4
>            Reporter: Sergey Morgunov
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>         Attachments: helloWorld.wsdl
>
>
> Action: 
> {code:bash}
> wsdl2java -p play.soap.testservice.client helloWorld.wsdl
> {code}
> Expected ({{HelloWorld.java}}):
> {code:java}
> @Action(fault = {
>   @FaultAction(className = ActionException_Exception.class, value = "test"),
>   @FaultAction(className = HelloException_Exception.class),
> })
> {code}
> Was({{HelloWorld.java}}):
> {code:java}
> @Action(fault = {
>   @FaultAction(className = ActionException_Exception.class, value = "test")
> })
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)