We use cxf 2.5.2 along with spring to expose and consume sedative services. To propagate the service interface classes, we started using the wadl2java target (which generates interface classes based on this wadl file)
The generated wadl does not contain the correct response type, due to which, I think, the generated interfaces have a "Response" as the return type.
Ex. if the restful get method returns "List", the generated wadl contains only the following segment:
<response><representation mediaType="application/json"/></response>
and the corresponding interface generated from this wadl file contains the return type as "Response"
Can anyone suggest what needs to be done to prevent the loss of the actual type of response? Are there any annotations (e.g. ElementClass? How to use them?) Or suppliers?
Current Code:
@GET
@Path("/itemsForCategory")
@Produces("application/json")
@Description("getItemsForCategory")
public List<Item> getItemsForCategory(@QueryParam("category")String category) {
source
share