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

Re: WSDL Import with just a location attribute

From: Arthur Ryman <ryman@ca.ibm.com>
Date: Thu, 13 Jul 2006 15:09:05 -0400
To: "Ramkumar Menon" <ramkumar.menon@gmail.com>
Cc: www-ws-desc@w3.org, www-ws-desc-request@w3.org
Message-ID: <OF3BE3394D.C937D5B9-ON852571AA.0067E908-852571AA.006945B2@ca.ibm.com>

The <import> element is a declaration that the document references 
components from another namespace. It imports the namespace, not a 
document. The location attribute is just a hint of where to find the 
definitions of the components in the namespace.

If you just want in bring in the contents of a document, use <include> but 
that requires that the included document have the same namespace.

We decided to make targetNamespace required to simplify the spec and avoid 
problems found with WSDL 1.1 where targetnamespace was optional. For 
example, targetname typically maps to a package name when generating code 
and the way "default" packages are handled by various tools is patchy.

Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@fido.ca

"Ramkumar Menon" <ramkumar.menon@gmail.com> 
Sent by: www-ws-desc-request@w3.org
07/12/2006 06:49 PM


WSDL Import with just a location attribute

Hi Gurus,
What is fundamentally wrong with an import of a document, rather than
a foreign namespace, into a WSDL Document ?
If I translate my thoughts into syntax,
why is
<wsdl:import location="http://www.twinktwinklilstar.com/wsdls/star.wsdl"/>
so unholy ?

Why not accept this variant ["of course", in addition to the existing
version] as a valid wsdl import ? If not, what's the strong reason
against this?

One more question - why is targetNamespace attribute for WSDL 2.0
documents mandatory ? Is it a WS-I issue ?

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

-Ramkumar Menon
 A typical Macroprocessor
Received on Thursday, 13 July 2006 19:09:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:55:00 UTC