W3C home > Mailing lists > Public > www-ws-desc@w3.org > March 2004

Proposed resolutions for issues 146 and 150

From: Jonathan Marsh <jmarsh@microsoft.com>
Date: Wed, 10 Mar 2004 09:55:56 -0800
Message-ID: <DF1BAFBC28DF694A823C9A8400E71EA202DF1CD5@RED-MSG-30.redmond.corp.microsoft.com>
To: "WS Description List" <www-ws-desc@w3.org>

Issues 146 [.1] and 150 [.2] were inadvertently left off the FTF agenda.
Sorry my bad.  Here's a simple proposal for addressing these issues,
assuming we find merit in adding this functionality.

Issue 146 Should WSDL be able to describe an operation with *anything*
in the message? [.1]

Issue 150 Indicating empty bodies [.2]

When using XML SchemaS, The element attribute points to a QName of a
GED, preventing either empty bodies, or unconstrained content.  Special
values of the element attribute could indicate these conditions.

Status quo:
  <xs:attribute name="element" type="xs:QName" use="optional" />

Proposal:
  <xs:attribute name="element" type="elementReference" use="optional" />

  <xs:simpleType name="elementReference">
    <xs:union>
      <xs:simpleType memberTypes="xs:QName">
        <xs:restriction base="xs:token">
          <xs:enumeration value="#any"/>
          <xs:enumeration value="#empty"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>

(I hope I have got that syntax right.  Should be enough to spark
discussion anyway...)

[.1] http://www.w3.org/2002/ws/desc/2/06/issues.html#x146 
[.2] http://www.w3.org/2002/ws/desc/2/06/issues.html#x150
Received on Wednesday, 10 March 2004 12:56:27 GMT

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