cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Mueller (JIRA)" <>
Subject [jira] [Commented] (CXF-4750) Wrong return type for enumeration in generated service interface using xmlbeans
Date Mon, 28 Jan 2013 13:03:13 GMT


Roland Mueller commented on CXF-4750:

Hi, I created two test projects, one using CXF 2.7.2, the other one using CXF 2.7.3-SNAPSHOT,
which I will attach.
You can run them via Maven, first "mvn clean install" and then "mvn jetty:run". The projects
only differ in the CXF version in the pom.xml and in the implementation of the generated service
I use soapUI for generating test requests from the wsdl and for requesting the server. The
problematic request is called "sampleMethod" and looks like the following:
<soapenv:Envelope xmlns:soapenv="" xmlns:test="">
It works on 2.7.2, but does not on 2.7.3-SNAPSHOT. For completeness, I also added the previous
testFunction, which works on 2.7.3-SNAPSHOT, but does not on 2.7.2.
> Wrong return type for enumeration in generated service interface using xmlbeans
> -------------------------------------------------------------------------------
>                 Key: CXF-4750
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: OtherDatabindings, Tooling
>    Affects Versions: 2.3.11, 2.7.2
>            Reporter: Roland Mueller
>            Assignee: Daniel Kulp
>             Fix For: 2.5.9, 2.6.6, 2.7.3
>         Attachments:,,
> I have a WSDL which has an enumeration as the response type for a SOAP operation. From
that, I am generating Java classes using the cxf-codegen-plugin with xmlbeans.
> The generated service interface has a String as response type. If my implementation returns
a String containing one of the specified enum values, I get an Exception (using CXF 2.3.11):
> org.apache.cxf.interceptor.Fault
> 	at org.apache.cxf.databinding.AbstractWrapperHelper.createWrapperObject(
> 	at org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> 	at org.apache.cxf.transport.servlet.ServletDestination.invoke(
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> 	at org.apache.cxf.transport.servlet.ServletController.invoke(
> 	at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(
> 	at javax.servlet.http.HttpServlet.service(
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(
> If I manually change the return type of the generated interface and my implementation
from String to "org.apache.test.ETestResponseType.Enum", everything works well.
> I could only test the wsdl2java generation with a newer CXF version, but 2.7.2 also generates
a String as the response type.
> I will attach a sample project.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message