W3C home > Mailing lists > Public > www-ws-desc@w3.org > November 2006

6.7.1.1 Construction of the request IRI using the http location

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 16 Nov 2006 08:51:24 -0500
To: www-ws-desc <www-ws-desc@w3.org>
Message-Id: <1163685084.13867.113.camel@localhost>

Given this instance data:
 <root>
   <foo>1</foo>
   <foo>2</foo>
 </root>

With http:location="t"
we should obtain "t?foo=1&foo=2"

With http:location="t/{foo}"
we should obtain "t/1?foo=2"

With http:location="t/{foo}/{foo}"
we should obtain "t/1/2"

With http:location="t/{foo}/{foo}/{foo}"
should we obtain an error (we don't have 3 foo elements in the instance
data) or, should we obtain "t/1/2/1" or "t/1/2/2" ?

As a side comment, using element names in the http:location adds an
additional message schema constraint, in addition to the ones already
defined the IRI style: those element names shouldn't be optional. If one
of those http:location element names is defined as optional in the
schema, not including it in the instance data could result in a runtime
error.

Philippe
Received on Thursday, 16 November 2006 14:52:04 GMT

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