DEV Community

Discussion on: SOAP vs REST

Collapse
metz20001 profile image
metz2000

You forgot to mention that probably all languages have SOAP support so an average developer would never write wsdl or xml. They would instead create classes and use APIs to send and receive messages like they would with json, ie I assume you dont build json in code but create objects and let the serializer do the rest. I consumed SOAP even in php 5 or 6? but it was no different to consuming a REST API: create request object, call remote service, process response object.
Another important point is that SOAP wasn't designed for front ends, and although there is probably a javascript library it wouldn't make sense to use it in this context. On the other hand json doesn't make sense in a strongly typed language because is typeless and schemaless. I know there are efforts to have json schema but is not as mature yet like SOAP.