This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

REST and SOAP based Services

 
C Shinde
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone guide me on what are the criteria's that I need to see to decide if I need to use REST based or SOAP based WebServices?

Thanks in advance.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
A basic question to ask is:
Can the web service you want to create be modeled as CRUD operations on one or more resources?
If the answer is yes, then RESTful web services are (probably) more suitable.
There are, of course, additional things to take into consideration, such as:
- Security requirements.
- Message delivery reliability.
- How do you want to provide information describing your service to clients.
- Data transfer format.
- Transport protocol.
Etc.

The above is extremely compressed - it is much easier to discuss this if you give some hints about the scenario you are facing.
Best wishes!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A google search for "rest versus soap" will get you a huge number of hits to browse through.
 
C Shinde
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ivan, but I did not have a scenario, it was just out of interest as that was a basic question anyone would ask in an interview, so I posted this query on the forum. I will think over some scenario based on your input and will get back.

Again thanks for your input! Have a nice weekend!
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic