This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to call this RESTful service?

 
hani se
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
i'm really new to RESTful services i want to call this service from my cms, my cms is in java, i have tried to write a code for calling it but i did n't succeed can you show me a simple code for this
Thanks
 
Santhosh ayiappan
Ranch Hand
Posts: 80
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many ways to consume a rest service. You can use HttpURLConnection or you can use the Jersey api to consume the service.

One such example can be found in the below link.

Code to consume Rest Service
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic