Hacker News new | past | comments | ask | show | jobs | submit login

>Why would you ever choose SOAP over a simple REST endpoint?

I thought the obvious answer was always tooling. Point Visual Studio at WSDL, and immediately get IntelliSense and go to town. Take your easy "object oriented" designs, and pop them on the web, with less of the trouble of DCOM or CORBA, and more security. But of course it only works if the tooling is in place, and there was probably only a couple of interoperable stacks.

But at least there was a real reason, and serious value for a lot of developers. To compare, JSON doesn't even have a standard date format defined.




SOAP/WSDL has IDE support and various tooling because it would be almost unusable without it.

Imagine doing SOAP entirely by hand, with a semi-complicated WSDL. It's a nightmare. Doing a RESTful service based on JSON data is not just not a nightmare, it's a breeze, with no need for any of the tooling you describe and with, in my opinion, absolutely no difference in API richness, interoperability, security, quality etc.


SOAP implementations are almost always so terrible that XML parsers can't make sense of them. WDSL would be just as useless even with tools.




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

Search: