wsdl2java generates aync SEI methods having compile errors when consuming a 
BARE service returning int.
-------------------------------------------------------------------------------------------------------

                 Key: CXF-1486
                 URL: https://issues.apache.org/jira/browse/CXF-1486
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1
            Reporter: Chris McClelland
             Fix For: 2.1


If you create a service like this:

@WebService(targetNamespace = Bug.NS_URI)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class Bug {
        public static final String NS_URI = "http://blah";;
        @WebMethod(operationName = "GetInt")
        public int getInt(
                @WebParam(targetNamespace = NS_URI, name = "GetInt")
                String request)
        {
                return 10;
        }
}

...and then pipe its CXF-generated WSDL through wsdl2java with 
enableAsyncMapping, the generated SEI will not compile:

@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@WebMethod(operationName = "GetInt")
public Response<int> getIntAsync(
    @WebParam(partName = "GetInt", name = "GetInt", targetNamespace = 
"http://blah";)
    java.lang.String getInt
);

The reason is that you can't do Response<int>; it has to be Response<Integer>. 
The same is true for any builtin type (int, float, boolean etc).

-- 
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