W3C home > Mailing lists > Public > www-ws-arch@w3.org > February 2003

Re: Resource definition

From: Geoff Arnold <Geoff.Arnold@Sun.COM>
Date: Tue, 18 Feb 2003 23:28:10 -0500
To: www-ws-arch@w3.org
Message-id: <3E5307DA.5020405@sun.com>

Christopher B Ferris wrote:

>  > if I
>  > want to turn the bulb on, I just do a HTTP PUT containing a
>  > representation of the "on state" to the URI identifying the lightbulb.
> Yes, assuming you knew what that representation was, and assuming that the
> PUT method is supported by the resource...

It's worse than that, because of composition. Consider the composite
action "PlugInNewLightbulb THEN TurnOnLightbulb". Not only do we have
to handle partial failures; one cannot even *express* the desired state
of the new bulb as a state-representation PUT, because it doesn't exist
until the first part of the action is complete. (It's about here that
you discover how useful pronouns are in language!) And outlawing this
kind of thing - requiring that such actions be decomposed into their
state-representatable components - just doesn't work.
Received on Tuesday, 18 February 2003 23:29:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:41:03 UTC