RESTFul is centered around two basic principles:

  • Resources as URLs. A resource is something like a “business entity” in modelling lingo. It’s an entity you wish to expose as part of an API. Almost always, the entity is a noun, e.g. a person, a car, or a football match. Each resource is represented as a unique URL.
  • Operations as HTTP methods. REST leverages the exising HTTP methods, particularly GET, POST, PUT, and DELETE. Note that the XMLHttpRequest object, and some wrapper libraries.

1. RESTful Web Services

Read this  article to understand concept of RESTFul and especially the table of HTTP request and HTTP response messages. But you should ignore the code implement because we are going to use JAX-WS or JAX-RS.

2. How to use JAX-RS
Implementing RESTful Web Services in Java

Configuring JSON for RESTful Web Services in Jersey 1.0

REST web services with JAXB, JAX-RS and Sun Jersey

3. RESTFul framework
Build a RESTful Web service

JBoss RESTEasy

4. How to use JAX-WS
Realizing Strategies for Document-Based Web Services With JAX-WS 2.0

Next post let’s talk about AJAX and RESTFul!