Duncan Cragg just finished part two of the REST Dialogues. So, the stage has been set. You can get a resource by using HTTP GET at a URI and you can suggest a change to a resource by POSTing the updated version of the retrieved resource. We’ve got alot of power here and the next article will focus on Business Functions. Now we’re going to get to the heart of the issue.
At the same time, Pete Lacey has written a very funny faux-dialog titled “The S Stands for Simple“. I absolutely loved this article. I’ll bet that you’ll continue to think back to this article as your write your next SOAP-enabled service.
A few funny excerpts:
SOAP Guy: Sure thing. First, SOAP stands for Simple Object Access Protocol.
Dev: So it’s simple?
SG: Simple as Sunday, my friend.
…
SG: Sure thing. First there’s the SOAP envelope. It’s pretty simple. It’s just an XML document consisting of a header and a body. And in the body you make your RPC call.
Dev: So this is all about RPCs?
…
SG: No. SOAP doesn’t really use HTTP response codes.
Dev: So, when you said SOAP uses HTTP, what you meant to say is SOAP tunnels over HTTP.
SG: Well, tunnel is such an ugly word. We prefer to say SOAP is transport agnostic.
…
SG: Remote procedure calls! Serialized objects! Where did you get the impression that SOAP was about RPCs? SOAP is all about document-based message passing, my friend.
Dev: But you just said…
SG: Forget what I said. From here on in we pass around coarse-grained messages—you like that term, coarse-grained?. Messages that conform to an XML Schema. We call the new style Document/Literal and the old style RPC/Encoded.
…
SG: Sorry to hear that, buddy. On the bright side, nobody uses the Doc/Lit style anymore. In order to get transport independence back we’re all using wrapped-doc/lit now. Doesn’t that sound cool: wrapped-doc/lit?
It’s a good 5-min read, don’t pass up the opportunity.