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

REST Web service makes call to another REST web service

 
Smari Oumaya
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm wondering if a REST Web service can make call to another REST web service. If yes how? i should create a client for the second web service in the definition of the first?

thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can write a class which executes a call to a REST web service and returns a result, then of course you can incorporate that class into any application, even a REST style service.

I don't understand the second part of your question at all.

Bill
 
Smari Oumaya
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bill my problem is resolved. Like a regular call to a REST web service, in the body of the service i must create an instance of the client of the web service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic