Posts

Showing posts from April, 2017

Generate Client Stubs using WADL for Rest Service(Jersey)

Required Jars: asm-3.1.jar jackson-core-asl-1.9.2.jar jackson-jaxrs-1.9.2.jar jackson-mapper-asl-1.9.2.jar jackson-xc-1.9.2.jar jersey-client-1.17.1.jar jersey-core-1.17.1.jar jersey-json-1.17.1.jar jersey-multipart-1.17.1.jar jersey-server-1.17.1.jar jersey-servlet-1.17.1.jar jsr311-api-1.1.1.jar mimepull-1.6.jar ------------------------------------------------------------------------------- EmployeeController.java package com.restjersey.controller; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; @Path("employee") public class EmployeeController { @GET @Path("/getEmployee/{name}") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public Response getEmployee(@PathParam("name") final String name) { return Response.status...