POSTare the verbs that the developer can use to describe the necessary create, read, update, and delete (CRUD) actions to be performed on the resource.
REST is much simple and uses HTTP methods and producing/consuming services is simpler.
It supports different formats like text. JSON and XML where SOAP supports only XML. You can implement caching for REST based calls.
It useful when clients are with low capacity performance and there is no need to process huge xmls.
When the services are stateless.
When services are Stateful, since It provides other services like : Security. AtomicTransaction and ReliableMessaging with which we can achieve that..
What is top-down approach in developing web services?
This approach starts with an already existing WSDL and from there you generate your java classes/skeleton. We could you lot of tools who support in generation of these classes. Once generated, you modify java classes to implement application logic. The major drawback is when your wsdl changes, you need to regenerate your
classes and re-modifying the application logic calls.
What is bottom-up approach in developing web services?
In this approach, we create the java classes first and then use the web services implementations like annotations @WebService to specify your interface. The wsdl will be generated automatically from your build.
<!-- Restlet adapter -->
<!-- Catch all requests -->
Concurrency note: instances of this class or its subclasses can be invoked by several threads at the same time and therefore must be thread-safe. You should be especially careful when storing state in member variables.