Comment by 2d8a875f-39a2-4

4 days ago

Sure, SOAP was often awful, I agree with that. But I can't see any angle where one can credibly assert that a SOAP XML payload isn't equivalent to a REST JSON payload in terms of the operation of a receiving application. Both are a chunk of structured information, your application parses it and operates on the resulting data structures.

>But I can't see any angle where one can credibly assert that a SOAP XML payload isn't equivalent to a REST JSON payload in terms of the operation of a receiving application.

I guess the angle is that there was a style of SOAP where the payload was interpreted as a remote procedure call conforming to an interface described in a WSDL document.

So there would be a SOAP library or server infrastructure (BizTalk) on the receiving end that would decode the message and turn it into a function call in some programming language.

In that sense, the payload would be "data" only for the infrastructure code but not on the application level.

And now I'm going to have to spend the rest of the day trying to forget this again :)

SOAP is the 9th circle of hell.

Most implementations don't retrieve parameters by tag, they retrieve parameters by order, even if that means the tags don't match at all. This is completely unlike JSON.

Also, almost nobody uses REST, so stop calling things REST, when you are talking about HTTP APIs.

Sorry about getting sidetracked there by my SOAP rant - I completely agree with your point.