RE: Importing schemata into WSDL

Sorry, I think I need to retract this -- the other included files would be
pulled in.  I still don't care for this as the mechanism of adding schemas
to WSDL.

<wsdl:types> 
  <xs:schema targetNamespace="http://my.target.namespace/foo"> 
    <xs:include schemaLocation="http://example.org/yadda/mystuff.xsd"/> 
  </xs:schema> 
</wsdl:types> 

Note that the "http://example.org/yadda/mystuff.xsd" file must have
targetNamespace also equal to "http://my.target.namespace/foo".  This seems
overly cumbersome.  In addition, according to XML Schema, if the <include>
does not resolve, it isn't an error and nothing would get pulled in.

Don

-----Original Message-----
From: Don Mullen [mailto:donmullen@tibco.com]
Sent: Friday, October 11, 2002 8:39 PM
To: 'Christopher B Ferris'
Cc: Amy Lewis; 'Jacek Kopecky'; WS Description WG;
www-ws-desc-request@w3.org
Subject: RE: Importing schemata into WSDL


Unfortunately this doesn't work either in all cases.

The <xs:schema> would have to have the same targetNamespace as the
<include>d schema.  And if the included file contained the *entire* set of
components for the namespace, this would work.  However, the <include>d file
could <include> other schema documents which would *not* get pulled in.

I can give a more specific example if needed.

This also has the same limitations as an <import> with forced/required
location.  In an XML environment that includes schema provisioning/caching,
it is sometimes best to only use the namespace, instead of location.

Don
-----Original Message-----
From: Christopher B Ferris [mailto:chrisfer@us.ibm.com]
Sent: Friday, October 11, 2002 7:28 PM
To: Don Mullen
Cc: Amy Lewis; 'Jacek Kopecky'; WS Description WG;
www-ws-desc-request@w3.org
Subject: RE: Importing schemata into WSDL



Jacek's points are well taken. Why not then leverage xs:include as that
would 
seem to be more approriate given Jacek's points. 

e.g. 
<wsdl:types> 
        <xs:schema ...> 
                <xs:include
schemaLocation="http://example.org/yadda/mystuff.xsd"/> 
        </xs:schema> 
</wsdl:types> 

Cheers, 

Christopher Ferris
Architect, Emerging e-business Industry Architecture
email: chrisfer@us.ibm.com
phone: +1 508 234 3624 

Received on Friday, 11 October 2002 22:06:24 UTC