Simon Fell > Its just code > RPCish

Saturday, April 05, 2003

RPCish Sam responds to my earlier comment on the preview API. At some level all the choices smell RPCish to me, this is about the point I get stuck on the whole RPC/REST/Messaging discussion, why is any of these magically better than the others, they all have something indicates what to do with the message.
POST /blog/1315.html?preview=yes
host: www.intertwingly.net
content-type: text/xml

<Envelope xmlns='....'>
<Body>
<item xmlns=''>....
POST /blog/1315.html
host: www.intertwingly.net
content-type: text/xml

<Envelope xmlns='....'>
<Header>
<b:Preview/>
</Header>
<Body>
<item xmlns=''>....
POST /blog/1315.html
host: www.intertwingly.net
content-type: text/xml

<Envelope xmlns='....'>
<Body>
<b:Preview>
<item xmlns=''>....
The top one seems to follow REST the closest (at least given my understanding of REST), I'm not seeing why 2 is better than 3, but am eager to learn!
< 10:55 AM PDT # > [playing Amon Tobin - Cosmo Retro Intro Outro (from Out From Out Where)]

You can't post a Comment

Sorry i got sick of comment spam, have something to say about one of my posts, post it to your own weblog.