[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: REST as RPC done right


rpc rest
"Simon St.Laurent" wrote:
> 
> Is it fair to describe REST as RPC done right?
> 
> I can't say I believe the various denials from the REST camp claiming
> that REST is fundamentally different from RPC.  REST has far fewer and
> more generic methods than most RPC approaches encourage, and doesn't
> appear as likely to create tightly (irrevocably?) coupled systems.  On
> the other hand, it clearly has methods and parameters, as well as a
> request-response approach. 

I'll pick the nits that Mark wouldn't. It isn't that REST methods are
more generic, it's that they _are_ *generic*. If a method doesn't make
sense for most or all resources then it shouldn't be a REST method. 

> ...  URIs are not a magic wand for cleaning up
> architectures in my experience either.

That's a little too vague for me to be able to say much about it. 

> From my perspective (XMLChucker etc.), REST still looks like RPC.  

From my perspective, XMLChucker looks like RPC. ;)

REST requires the generic intent of the message to be available in a
manner that is visible in the protocol and thus to intermediaries. RPCs
do not and as far as you have described, XMLChucker does not. So to me,
XMLChucker is more like an RPC protocol. (assuming it allows return
results, which it may not)

In my mind, the defining characteristics of RPC are a) a single endpoint
supports an arbitrary number of methods b) the endpoint is allowed to
invent its own methods and c) the endpoint returns values based on the
method name and method inputs.

If HTTP is RPC then I would say FTP is also. HTTP calls them "methods",
FTP calls them "commands" but the important thing is that they are
defined *in the standard* (modulo extensions) rather than being defined
by the end-points.

And it is because they are defined in the standard that intermediaries
have a hope of understanding them.

 Paul Prescod

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.