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.
The above is extremely compressed - it is much easier to discuss this if you give some hints about the scenario you are facing.
A google search for "rest versus soap" will get you a huge number of hits to browse through.
Joined: Oct 22, 2009
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.