Some web services can be described as being RESTful.
REpresentational State Transfer (REST) REST is an architectural style.
Elements of the REST architectural style are its stateless client-server
architecture and the fact that web services are viewed as resources that
can be identified by their URLs. The application of some or all of the
constraints specified by the REST architectural style to a JAX-WS web
service makes it a RESTful web service.
For a full tutorial that shows how to
work with RESTful web services,
see:
To generate a RESTful web service from scratch:
Use the Plugin Manager under the Tools menu
to install the RESTful Web Services
module, which will also install the
RESTful Web Service Libraries module
and the RESTful Web Service Support
module.
RESTful Web Services from Patterns.
Creates RESTful web services using one of the following patterns:
Singleton. Creates a singleton RESTful resource
class with GET and PUT methods, using Java API for RESTful
Web Service (JSR-311). This pattern is useful for creating
a simple HelloWorld service and wrapper services for invoking
WSDL-based web services.
Container-Item. Creates a pair of RESTful resource
classes, consisting of an item resource class and its container
resource class using Java API for RESTful Web Service (JSR-311).
Item resources can be created and added to the container resource
using the POST method on the container resource class. Note
that the URI for the newly created item resource is determined
by the container resource.
Client-Controlled Container-Item. Creates a pair of RESTful
resource classes, consisting of an item resource class and its container
resource class using Java API for RESTful Web Service (JSR-311).
This pattern is a slight variation of the Container-Item pattern.
The difference is that there is no POST method on the container
resource class for creating item resources. Instead, item resources
are created using the PUT method on the item resource class.
The reason this is called Client-Controlled Container-Item pattern
is because the URI for the item resource is determined by the client
and not the container resource.
Alternatively, you can choose the above templates
by right-clicking the project node, choosing New > Other
and then selecting them from the Web Services category.