Use the Spring RestTemplate example here .
RestTemplate rest = new RestTemplate() rest.postForObject("http://localhost:8080/WebApp/ServiceName", requestBean, Response.class);
This should return an object of type Response. For other HTTP operations supported by RestTemplate, see Spring Documentation.
monim source share