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

While I agree with your premise that SOAP and WS-* is over-engineered, at the basic (simple SOAP + WSDL) I quite like it. There's a defined contract and you can generate strong-typed clients. I haven't checked in a while, but how is Swagger/OpenAPI in that regard?



I basically loathe code generators in general. :)

JSON Schema gives you the equivalent of WSDL. There are various libraries that will take a schema and create the strongly typed objects in the language of your choice.

Theoretically, if you have "Code on Demand", your client can ask the server for the code to handle a media type :)


JSON schema describes the format, more like XSD. WSDL is a lot more with definitions of operations, bindings etc.


Things like grpc and GraphQL seem to be the descendants of SOAP/WSDL.

GraphQL is quite nice as it kind of has the best of both worlds: a strongly typed schema for data and operations, while being fairly close to a simple JSON/HTTP API.


REST's fundamental pitch is that for a large class of problems, a good format solves problems more easily than a rich set of operations.




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

Search: