I am trying to create a web service and its client.
Web service - JAX- RS (Using jersey for that i.e org.glassfish.jersey.containers)
Client - an Ajax request calling that service.
Basically this webservice data will be accessed from a mobile. So i have to keep domain different.
Code for Webservice's one of the method which I am calling through ajax.