Ask HN: What was wrong with SOAP and WSDLs?
The other day I happened to work on something that involved an old Java EE app that was using a SOAP based API.
I was blown away.
It seems like with SOAP the API is so well specified. I can read a single file and know the exact request and response types down to the exact types of the data structures?
Not only that but I can automatically generate client libraries for my API?
This might be naive but SOAP seems worlds better than REST from my impression.
REST feels so wishy washy and undefined as if no one actually understands how it should actually work. I’ve seen otherwise really good developers put verbs in the resource paths, and some operations feel really awkward to model in REST.
Furthermore it seems to rely on the developers to write good API docs which might get out of date easily.
To me it almost seems like REST vs RPC is like JavaScript vs a strong typed language. It seems better at first but falls apart when you start needing stronger structure and guarantees.
Now with that said, I wanna know why SOAP is actually terrible.
I’ve heard a lot of hate towards it and seeing as it sounds like it was abandoned I’m assuming I’m missing some crucial flaw here...
Was it about interoperability?
I can see how it’s easier to setup a quick request to a REST API in any language compared to XML but I’d have thought generated client libraries would solve this issue.