RESTful Service with Jersey

Posted 1 CommentPosted in Java, REST, WebServices

This tutorial would help you to create a Restful service with Jersey. We will develop the Restful service with Jersey and for doing that we will use Maven to setup the environment and download the dependencies. We will deploy it in Tomcat server or J2EE Preview. If you need help downloading maven, you can refer to this […]

RESTful webservice with Jersey and Grizzly

Posted 1 CommentPosted in Java, REST, WebServices

This tutorial would help you to create a simple Jersey service without the need of deploying to a container. We will develop the Restful service with Jersey and Grizzly and for doing that we will use Maven to setup the environment and download the dependencies. If you need help downloading maven, you can refer to this post […]

Create Rest Client using HttpClient 4.3.5 api

Posted Posted in Java, REST, WebServices

The below tutorial will assist in creating a Client for invoking a Rest service.. we are using HttpClient 4.3.5 jar for this. We need to download the following jars for this: httpclient 4.3.5.jar commons-httpcore 4.3.2.jar httpclient-cache 4.3.5.jar commons-logging 1.1.3.jar You can directly download these jars from apache site or use maven to download the dependcies for […]

Create Rest client using HttpClient 3 api

Posted Posted in Java, REST, WebServices

This code snippet uses HttpClient 3 api (HttpClient 3.0.1 jar) to invoke a REST based web service. It assumes the request is in JSON format and response is needed in JSON format. The code would require the Rest service url that we need to connect to… let’s call it serviceURL. Also, let’s assume the json […]