Posts

Showing posts with the label RESTful web services

How to create a RESTful Web Service using Jersey JAX-RS

Image
What is a web service? A web service is a service that made available over the web. There are two types of web services. One is SOAP web service and the second one is RESTful web service. Today I am going to talk about RESTful web services. What is a RESTful web service? A web service based on REST (REpresentational State Transfer) architecture is known as a RESTful web service. In this architecture, REST server simply provides an access to a resource and REST client accesses and represents the resource. These resources can be an image, video or a dynamic business data. Here, each resource is identified by URI. (Uniform Resource Identifier). REST uses HTTP protocols for data communication. It uses representations to represent a resource like text, JSON or XML. Commonly used HTTP methods are GET, PUT, POST and DELETE. What is JAX-RS? JAX-RS is the specification for REST web services with java. JAX-RS uses annotations to the development and deployment of web services. ...