REST vs. SOAP/WSDL
I've had several blog postings comparing REST
withSOAP
/WSDL
. They include some especially good comments from readers:
When to use what
An emerging best practice seems to be:
- Use REST for user interfaces and perhaps client apps, where a human is doing the work. These apps seem to be more forgiving: If the GUI messes up, the user notices and tries something else. REST can be especially useful with Ajax, where simplicity is prized over correctness.
- Use SOAP/WSDL for application integration, where apps are talking to each other without human intervention nor supervision. In this context, strong interfaces, provable correctness, and management and migration of service interfaces are prized over simplicity.
So the question to be asked is: What if the interface changes and the integration breaks? If that's no big deal or easy to fix, use REST; otherwise, use SOAP/WSDL.
Resources