• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Consuming REST based web service

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic