Re:REST is the new SOAP
by ivan_gammel on Saturday December 16, 2017 @05:52AM
(#15938939)
Crafting REST request with JSON payload is significantly easier than doing that with SOAP (or, rest it in peace, CORBA).
[ Parent
| on HN ]
I don't mind a loose JSON REST-ish API, where everything is a GET, POST or (maybe) a PUT, with explicit endpoints to resolve ambiguities.
Once people start exhibiting excruciating pedantry in designing their APIs, I'll switch off somewhat.
The author was comparing REST to json-rpc. Nowhere in the article does he propose that people use SOA or CORBA.
Re:REST is the new SOAP
by ivan_gammel on Sunday December 17, 2017 @03:39AM
(#15944845)
There's no difference between debugging REST and JSON-RPC over HTTP, so there's no point to compare them. The other alternatives, that I've mentioned, are less easy to debug.
Have you ever seen SoapUI tool[1] ?
It takes just a few clicks to generate complete set of requests from WSDL (set, as in "one request per each operation"). I think it's much better user experience than hand-crafting json to use with curl.
That is highly dependent on the language you are using.
Many languages support auto generation of consumer and producer code based off of WSDLs.
And AFAIK, most languages that don't have the auto gen tools do have XPATH libraries for easily manipulating templated SOAP requests.
Re:REST is the new SOAP
by ivan_gammel on Sunday December 17, 2017 @03:36AM
(#15944835)
It's still much faster to run curl with JSON, than to run auto-gen tool and write a whole test program to call an API.