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

Can one inline schema import definitions from a second inline schema?

From: Lawrence Mandel <lmandel@ca.ibm.com>
Date: Thu, 16 Oct 2003 18:18:44 -0400
To: www-ws-desc@w3.org
Message-ID: <OF6A1E70CD.A18A1746-ON85256DC1.007644DF-85256DC1.007A931C@ca.ibm.com>





Hello,

We have customers that do the following in WSDL 1.1:

<types>
 <schema targetNamespace="http://namespace1" xmlns=
"http://www.w3.org/2001/XMLSchema" xmlns:two="http://namespace2">
   <import namespace="http://namespace2"/>
   <complexType name="myComplexType">
    <sequence>
     <element name="myElement" type="two:B"/>
    </sequence>
   </complexType>
   <complexType name="A">
    <sequence>
     <element name="elementA" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
  <schema targetNamespace="http://namespace2" xmlns=
"http://www.w3.org/2001/XMLSchema" xmlns:one="http://namespace1">
   <import namespace="http://namespace1"/>
   <complexType name="myComplexType">
    <sequence>
     <element name="myElement" type="one:A"/>
    </sequence>
   </complexType>
   <complexType name="B">
    <sequence>
     <element name="elementB" type="xsd:string"/>
    </sequence>
   </complexType>
  </schema>
</types>

The customers say that this is not explicitly forbidden by the WSDL 1.1
specification and I can't find anything that forbids this in the WSDL 1.1
specification.  However, there is nothing in the WSDL 1.1 specification
that states how to import a schema defined in the same types section but
with a different namespace.

Is this allowed according to the WSDL 1.2 specification?  If so, what is
the correct way to import one inline schema into another?

Thanks,

Lawrence Mandel

Software Developer
WebSphere Studio Application Developer - XML Tools
Phone: 905 - 413 - 3814   Fax: 905 - 413 - 4920
lmandel@ca.ibm.com
Received on Thursday, 16 October 2003 18:18:48 GMT

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