W3C home > Mailing lists > Public > xml-dist-app@w3.org > November 2000

RE: Errors and broken links

From: Lucas Gonze <lucas@worldos.com>
Date: Wed, 8 Nov 2000 16:18:58 -0500 (EST)
To: <xml-dist-app@w3.org>
Message-ID: <NEBBJIHMMLKHEOPNOGHDCEBACGAA.lucas@worldos.com>
Also, the WorldOS protocol has been updated.  We have eliminated the fields:
msg->protocol->id
msg->protocol->version
msg->protocol->definition
msg->protocol->checksum.

A simple message is:
<msg>

  <protocol>
    <function>foo</function>
  </protocol>

  <!-- this is an optional field -->
  <funcdata/>

</msg>

We have added a new field, msg->protocol->superclass.  There may be may be 0 or
more instances of it.

An example that incorporates the superclass and funcdata elements is:
<msg>

  <protocol>
    <superclass>HTTP 1.1 Post</superclass>
    <superclass>HTTP Post</superclass>
    <superclass>HTTP Message</superclass>
  </protocol>

  <funcdata>
    <!-- arguments for "HTTP 1.1 Post" -->
      <keepAlive>true</keepAlive>

    <!-- arguments for "HTTP Post" -->
      <contentLength>123</contentLength>

    <!-- arguments for "HTTP Message" -->
      <accept>image/*</accept>

  </funcdata>
</msg>

When a requested function is not found, a node attempts to use the nearest
superclass.  In the above example, a node that did not support "HTTP 1.1 Post"
but did support "HTTP Post" would use the handler for "HTTP Post".

Another example is:
<msg>
  <protocol>
    <function>Do Addition</function>
    <superclass>Forward this request if you don't support the above
function.</superclass>
  </protocol>
  <funcdata>
    <!-- arguments to "Do Addition" -->
    <add>
       <val>1</val>
       <val>1</val>
    </add>
    <!-- arguments to the superclass -->
    <time to live>3</time to live>

<returnAddress>http://www.myserver.com/saveMessageResult?requestId=1234</returnA
ddress>
  </funcdata>
</msg>

The purpose of the superclass argument is to support feature and version
negotiation.  We hope that it will allow graceful degradation from a newer
version of a protocol to an older one, or from a specialized message type to a
general one.

Comments on this approach are welcome.

_________
Lucas Gonze
WorldOS Corporation

> -----Original Message-----
> From: xml-dist-app-request@w3.org [mailto:xml-dist-app-request@w3.org]On
> Behalf Of Todd Boyle
> Sent: Wednesday, November 08, 2000 2:01 PM
> To: xml-dist-app@w3.org
> Subject: Errors and broken links
>
>
> Re: your http://www.w3.org/2000/03/29-XML-protocol-matrix
>
> You misspelled WorldOS two places, and the link doesn't
> link.  Should be http://www.worldos.com/technology/index.php
>
> Thank you
>
> Todd Boyle
> webledgers.
> www.gldialtone.com
>
>
>
Received on Wednesday, 8 November 2000 16:21:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:58:57 GMT