W3C home > Mailing lists > Public > www-ws-desc@w3.org > February 2007

Proposal for Assertion InterfaceMessageReference-0042

From: Ramkumar Menon <ramkumar.menon@gmail.com>
Date: Thu, 15 Feb 2007 14:06:24 -0800
Message-ID: <22bb8a4e0702151406q6d756f22t9157a4b5817aa82@mail.gmail.com>
To: www-ws-desc@w3.org
Hi Gurus,

The mentioned assertion states "For each Interface Message Reference
component in the {interface message references} property of an Interface
Operation component, its {message label} property MUST be unique.".

Correct me if I am wrong, but can we have the XSD capture this constraint
explicitly ?

For instance,

<xs:element name="operation" type="wsdl:BindingOperationType">
  <xs:unique name="messageLabel">
    <xs:selector
xpath="(wsdl:input|wsdl:output:wsdl:infault|wsdl:outfault)">
     <xs:field xpath="@messageLabel">
    </xs:selectpr>
  </xs:unique>
</xs:element>

rgds,
Ram
-- 
Shift to the left, shift to the right!
Pop up, push down, byte, byte, byte!

-Ramkumar Menon
A typical Macroprocessor
Received on Thursday, 15 February 2007 22:06:36 GMT

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