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

RE: RESTful XML for updates?

  • From: "Scott, Christopher" <christopher.scott@f...>
  • To: "Anne Thomas Manes" <atmanes@g...>, <elharo@m...>
  • Date: Mon, 9 Mar 2009 10:53:02 -0400

RE:  RESTful XML for updates?
Thanks for the responses.  It seems that the consensus is that if a
resource is partially updateable, the updateable parts should be their
own resource.  That seems elegant and RESTful.  Thus we're left with
something like:

<Widget>
  <Id>0FAB7894C</Id>
  <CreatedDate>2009-03-05</CreatedDate>
  <State href="./State">INSPECTED</State>
  <Color href="./Blue">Blue</Color>
  <Whatsists>
    <Whatsist href="./Whatsist/1002"/>
    <Whatsist href="./Whatsist/1002"/>
  </Whatsists>
</Widget>

Even so, that leaves me with two questions:

1. Take, for instance, the State element and the Whatsists.  How would
the client know if you could POST to the "State", but not PUT, and only
GET and PUT "Whatsists"?  The server would return a 405 when something
isn't allowed, but I still feel as though the client should be able to
know this information before making another request.  

I suppose we could add an attribute like
rest:methods-disallowed="PUT,DELETE" on each resource, but I'm not
terribly satisfied with that approach.  Perhaps, some meta-data in a
referenced schema (similar to what was suggested by Rusty)?

2. It would seem that for large partially-updateable resources, this
would increase the amount of HTTP traffic over, say, a single update
document.  Furthermore, if keep-alive isn't used, then there is a
significant connection overhead.  For me, however, this isn't a big deal
because my resources aren't that huge, but this design could impact
scalability.  Some sort of container POST with separated documents, as
postulated in the article linked by Peter could be an OK solution to
this. 

~Chris


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.