if you have a restful ws written like this:
@Path("/doadd")
@POST
@Consumes("application/x-www-form-urlencoded")
@Produces({MediaType.TEXT_HTML})
public String doadd(@FormParam("id") String id, @FormParam("name") String name,
@FormParam("gender") String gender, @FormParam("age") String age,
@FormParam("email") String email)
{
...
}
Please remove:
@Consumes("application/x-www-form-urlencoded")
works for me.