W3C home > Mailing lists > Public > www-ws-desc@w3.org > September 2003

Re: is the uniqueness constraint on top level components sufficient?

From: Sanjiva Weerawarana <sanjiva@watson.ibm.com>
Date: Fri, 19 Sep 2003 17:59:08 +0600
Message-ID: <005101c37ea5$6eb89500$155a0209@lankabook2>
To: "Martin Gudgin" <mgudgin@microsoft.com>, "David Orchard" <dorchard@bea.com>, "Roberto Chinnici" <Roberto.Chinnici@Sun.COM>
Cc: <www-ws-desc@w3.org>

"Martin Gudgin" <mgudgin@microsoft.com> writes:
> 
> The spec currently says ( for interfaces, for example )
> 
> For each interface component in the {interfaces} property of a
> definitions container the combination of {name} and {target namespace}
> properties must be unique. 
> 
> There is only ever one definitions container. Therefore there is only
> one {interfaces} property. Therefore interfaces MUST all have unique
> Qnames. If they don't it's an error and the WSDL parser should
> catch-fire-and-die. 

Agreed; WSDL parsers are not the ones who have the problem I'm
trying to solve.

> I don't understand what it is you want to change.

The wording in the spec does not guarantee that there MUST only
be exactly one Interface component with a given QName. 

Maybe I'm just being retarted and not seeing that there's no
problem, but what I had in mind was to add a statement like the
following somewhere:

    "The QName identifying any top level Interface, Binding or 
     Service component MUST be unique from amongst all similar
     components. That is, two different top level components of
     the same kind MUST NOT share the same QName. However, two
     components of different kinds MAY have the same QName."

Sanjiva.
Received on Friday, 19 September 2003 18:02:12 GMT

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