• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
Don't play dumb with me! But you can try this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic