File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Consuming REST based web service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Consuming REST based web service" Watch "Consuming REST based web service" New topic
Author

Consuming REST based web service

Kaarthik Vaidiswaran
Greenhorn

Joined: Nov 07, 2000
Posts: 10

I need help in consuming a REST based web service. I have to invoke the web service and authenticate it using Basic authentication.
The service returns results in form of JSON.

I found out that I can use Jersey API for consuming the service. I want to deserialize the JSON formatted string and create Java Beans/pojos. I do not know how to deserialize the JSON formatted strings.

I understand that JSON strings can be deserialized using other APIs like JSON-lib, XStream or from JavaScript, but I would like to know how to do this using Jersey. Do I need any JAR files from the web service provider? Presently, I know the url for invoking the service, I do not have any other JARs from the web service provider.

I use Eclipse 3.3 as IDE

Please give me some suggestion regarding the deserialization of JSON.

Thanks
Karthik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Consuming REST based web service