Being able to access objects by an URI is fine
and desireable in many circumstances,
and REST might work in situations where I want
to save, read or delete data. You can use the HTTP operations to mimik database operations. But are the semantics rich enough to handle all we
want to do?
What if I want to use a web service for rotating a SVG object by an angle of 30 degrees?
What if the POST operation was part of
a distributed transaction that has to be rolled
back?
How do I POST an email?
After all, even the oldfashioned forms of the times of paper and pencil are nothing but a kind of RPC. A filled in oder form sent to a compony is ment to initialize a process that will eventually return me the products I ordered.
(Otherwise I'm not happy.)
Only the fact, that I send a message by mail, by email, by HTTP or some other transport mechanism does not make it more declareative, neither does the fact that the operation is hidden in an URI or a basic operation of HTTP.
A SOAP message could be seen as a declaration of the intent of the user and a kind of contract with
the service provider what he will get.
As user I like clear contracts. It makes life easier.
Are REST and SOAP really either-ors?
You can easily expose objects using URIs
that have been stored using SOAP.
You can use HTTP-POSTs to send SOAP
messages...
Willy Müller
|