hi,I dont know is this a bug,I use cxf 2.2.5:
My java code:
@POST
@Path("/getInt")
@Produces("text/plain")
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public int getInt(@FormParam("input") int input) {
return input;
}
this will generate the wadl:
<resource path="/getInt">
<method name="POST">
<request>
<representation mediaType="text/plain">
</representation>
</request>
<response>
<representation mediaType="text/plain" />
</response>
</method>
</resource>
the mediaType of request is "text/plain",not
MediaType.APPLICATION_FORM_URLENCODED,why???
--
View this message in context:
http://cxf.547215.n5.nabble.com/a-JAX-RS-Produce-problem-tp1223880p1223880.html
Sent from the cxf-user mailing list archive at Nabble.com.