Win a copy of Functional Reactive Programming this week in the Other Languages 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: 13074
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