1. REST Web Service
By: Sari Meriem
1
UNIVERSITY of MOHAMED CHERIF MESAADIA
SOUK-AHRAS
Departement of Math & Computer Science
Presentation About:
2. Reminder
2Meriem Sari Service Web 2eme AM GL
Stands for: Representational State Transfer.
Is an architectural style.
Introduced first in 2000 then standardized in 2008.
Everything in REST is considered as a resource.
Every resource is identified by an URI.
3. Reminder
3
Resources are handled using POST, GET, PUT, DELETE operations
which are similar to Create, Read, update and Delete(CRUD)
operations.
It uses uniform interfaces.
A RESTful Web service is a Web service implemented using HTTP
and the principles of REST.
Meriem Sari Service Web 2eme AM GL
6. Example
6
Copy all jar files from the Jersey zip into WEB-INF/lib folder.
Select build path in your project and add the same jars in your build
path.
Create package called com.javatutorialscorner.rest.ws.
Create following class inside package com.javatutorialscorner.rest.ws
RestHelloWorld .java
Meriem Sari Service Web 2eme AM GL