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

Dennis Kieselhorst resolved CXF-8114.
-------------------------------------
    Resolution: Won't Fix

[~wienczny] resolving this for now. Feel free to reopen with additional 
feedback.

> cxf-codegen-plugin generates invalid code for operations with empty parameters
> ------------------------------------------------------------------------------
>
>                 Key: CXF-8114
>                 URL: https://issues.apache.org/jira/browse/CXF-8114
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.3.3
>            Reporter: Stephan Wienczny
>            Priority: Major
>         Attachments: OneClickForRefund.wsdl
>
>
> We are trying to implement a webservice from a given wsdl. It contains an 
> operation (createRetoureId) that references an empty element 
> (CreateRetoureIdRequest)
> as parameter, e.g. it is an operation without an actual parameter. In the 
> generated code this parameter is mapped to "java.lang.Object":
> {{}}{{@WebMethod}}
> {{@WebResult(name = "CreateRetoureIdResponse", targetNamespace = 
> "http://oneclickforrefund.dpag.de";, partName = "parameters")}}
> {{@Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = 
> "2019-09-13T11:24:07.696+02:00")}}
> {{public CreateRetoureIdResponse createRetoureId(}}
> {{ @WebParam(partName = "createRetoureIdRequest", name = 
> "CreateRetoureIdRequest", targetNamespace = 
> "http://oneclickforrefund.dpag.de";)}}
> {{ java.lang.Object createRetoureIdRequest}}
> {{) throws CreateRetoureIdException_Exception;}}
>  
> I did not find a way to pass a valid value to the method when being invoked 
> from Java. Neither "null" nor "new Object()" result in a message being send.
>  
> The wsdl is attached and publicly available at 
> [https://internetmarke.deutschepost.de/OneClickForRefund?wsdl] 
>  



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

Reply via email to