Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

(I find it very distasteful to downvote parent's comment without replying. It's a valid opinion, not a troll)

You're right that REST doesn't provide everything SOAP does, because SOAP is a specific protocol and REST is just an architectural style. On the other hand, there are already specific protocols to achieve that in a REST style (and reusing HTTP), like WADL.

Furthermore, it's not clear that a one-size-fits-all approach like SOAP takes is the right way. XML is great for some use cases but not others; by pigeonholing everything to it you create inefficient systems filled with hacks to avoid its shortcomings in certain domains.

SOAP in particular seems very strict, while REST based systems - particularly the Web - are designed to make an heterogeneous mix of decoupled services and clients work well together. The idea that a client should break if the schema changes, for example, leads to very brittle systems.



>> The idea that a client should break if the schema changes, for example, leads to very brittle systems.

Thanks for that, much appreciated.

>> The idea that a client should break if the schema changes, for example, leads to very brittle systems.

That's the point, imagine building the web using string values instead of constants. With constants, if it changes, you immediately get notification from the IDE via the compiler and can fix it straight away. If it's a string, then it's up to the poor testers to find it and good luck, it has to be in a known use case.

I think for general communications REST is better than not following any standard by far. For web services though, my money is still on SOAP and I'm a Java/Linux lover not .NET these days, SOAP is still best for Web Services in my view.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: