Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
lotd77757yApart from the index being an increasingly large and clunky XML formatted file? I'm not sure if there are any.
-
C0D4669027yI guess a key advantage to SOAP is having a WSDL that clearly explains what and how the soap requests are suppose to look and behave like rather then some shitty rest api doc that isn’t maintained, also using XSD files for request validation is really handy.
The reason most people choose REST is because it’s quick and easy to build a request for, quick to modify at both ends if any changes are needed and consuming a JSON string over a mile long XML is nicer on server load and easier to work with.
I use both on a daily basis, and prefer REST personally. -
2erXre524957yI would say the possible envelop encryption/security measures in SOAP, otherwise it's just XML overhead in comparison to JSON REST
-
@C0D4 OpenAPI/Swagger offers the same benefits that a WSDL does, only using JSON/YAML instead of XML.
That said, the existence of either doesn't always count as sufficient documentation, although it's a lot better than nothing! -
soap is xml format containing all needed information for request, can be used over any transport protocol. rest is made over http and forces to use get post put delete methods. any of these are deprecated now. just use json no matter what transport you use. if http then use post only to avoid url lenght limits.
!rant
What are the exact advantages of SOAP over REST?
I've always wanted to know this :3
rant