In this tutorial I am going to show you how we can create REST web service in Mule ESB. We will use HTTP Connector as a request-response medium to interact with REST web service. You can see also SOAP Web Service with Mule ESB and Send data to remote REST web application using Mule ESB

Posted in Mule ESB REST

REST Web Service with Mule ESB

Table of Contents Introduction HTTP Methods Prerequisites Project Setup Deployment Descriptor REST Resource Test Class Testing Basic Authentication in REST Service Source Code Introduction In this tutorial I am going to show you how you can authenticate the REST webservice using sending credential information in Cookie. The most important concept in REST is resources, which…

Posted in REST Security

REST Webservice Basic Authentication

Introduction In this post we will see how to convert List, Map to JSON in REST Response using Jersey API. We will create three separate REST methods to convert List to JSOn, Map to JSON and List of Map to JSON string. We will annotate the REST resource class with @Path for having the base…

Posted in Junit REST

Convert List, Map to JSON in REST Response using Jersey

Introduction Here I am going to give an example on how MultivaluedMap in REST web service works. A MultivaluedMap<K, V> is a map of key-values pairs. Each key can have zero or more values, where K – the type of keys maintained by this map and V – the type of mapped values. The most…

Posted in REST

REST Service with MultivaluedMap using Jersey

Introduction Here I am going to give an example on how Asynchronous REST webservice with Connection Callback. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web…

Posted in REST

Asynchronous REST Service Using Jersey – Connection Callback

Introduction Here I am going to give an example on how Asynchronous REST webservice with Completion Callback. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web…

Posted in REST

Asynchronous REST Service Using Jersey – Completion Callback

Introduction Here I am going to give an example Asynchronous REST service with Timeout using Jersey API. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web…

Posted in REST

Asynchronous REST Service With Timeout Using Jersey

Introduction Here I am going to give an example on how Asynchronous REST webservice works. This is a simple asynchronous REST service using Jersey API. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the…

Posted in REST

Simple Asynchronous REST Service Using Jersey

In this tutorial I will show you how to integrate REST using Jersey 2.6, Spring 3 and Grizzly web server. So I will use here Grizzly web server so we don’t need to use any other external webserver. I had been googling for many times but I did not get any satisfactory example on REST…

Posted in REST Spring Core

Spring 3, REST using Jersey 2.6 and Grizzly integration example

Here I am going to give an example on how REST webservice works. The most important concept in REST is resources, which are identified by global IDs — typically using URIs. Client applications use HTTP methods (GET/ POST/ PUT/ DELETE) to manipulate the resource or collection of resources. A RESTful Web service is implemented using…

Posted in REST

RESTful webservice using Jersey