W3C home > Mailing lists > Public > www-ws-arch@w3.org > October 2002

Event notification with the uniform interface constraint

From: Mark Baker <distobj@acm.org>
Date: Tue, 8 Oct 2002 13:00:10 -0400
To: www-ws-arch@w3.org
Message-ID: <20021008130010.Q28061@www.markbaker.ca>

As a followup to DavidB's suggestion of examples, I re-offer my
proposal to fix the current "event notification" usage scenario[1].

The current example uses the following request message;

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://www.w3.org/2002/06/soap-envelope">
    <s:StockNotificationSubscription xmlns:s="http://example.org/2001/06/subscribe">
        <s:Price range="GreaterThan">100</s:Price>

and my suggestion, which uses the uniform interface constraint (because
the method, MONITOR, is applicable to all resources) is;

MONITOR http://example.org/stockquote/BigCo HTTP/1.1
Host: example.org
Reply-To: http://foo.example.org/BigCoWatch
[blank line]
<monitor xmlns="http://example.org/2001/06/subscribe">
        <Price range="GreaterThan">100</Price>

(which could easily be SOAPified)

Perhaps we could talk about the pros and cons of each approach?

 [1] http://www.w3.org/TR/2002/WD-ws-arch-scenarios-20020730/#S200

Mark Baker, CTO, Idokorro Mobile (formerly Planetfred)
Ottawa, Ontario, CANADA.               distobj@acm.org
http://www.markbaker.ca        http://www.idokorro.com
Received on Tuesday, 8 October 2002 12:59:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:05:41 UTC