You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2007/04/18 12:43:15 UTC

[jira] Commented: (TUSCANY-1217) Loading nested includes.

    [ https://issues.apache.org/jira/browse/TUSCANY-1217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489687 ] 

Simon Laws commented on TUSCANY-1217:
-------------------------------------

This is discussed on the list in this thread:

http://www.mail-archive.com/tuscany-dev%40ws.apache.org/msg16698.html

And is currently demonstrated in the databinding itest. 

> Loading nested includes. 
> -------------------------
>
>                 Key: TUSCANY-1217
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1217
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Kernel
>    Affects Versions: Java-SCA-Next
>         Environment: All
>            Reporter: Simon Laws
>            Priority: Minor
>
> Lest we forget...
> Currently there is code in WSDLDocumentProcessor.read()  (the two lines with the comment above them).
>             // Read inline schemas
>             Types types = definition.getTypes();
>             if (types != null) {
>                 wsdlDefinition.getInlinedSchemas().setSchemaResolver(new URIResolverImpl());
>                 for (Object ext : types.getExtensibilityElements()) {
>                     if (ext instanceof Schema) {
>                         Element element = ((Schema)ext).getElement();
>                         // TODO: temporary fix to make includes in imported
>                         //       schema work. The XmlSchema library was crashing
>                         //       because the base uri was not set. This doesn't
>                         //       affect imports.
>                         XmlSchemaCollection schemaCollection = wsdlDefinition.getInlinedSchemas();           
>                         schemaCollection.setBaseUri(((Schema)ext).getDocumentBaseURI());
>                         wsdlDefinition.getInlinedSchemas().read(element, element.getBaseURI());
>                     }
>                 }
>             }
> Which sets the base dir against which included XSD files are loaded.  However this seems to mean that in the scenario:
> WSDL1 import---> XSD1 inlcude.---> XSD2
>  
> Then XSD2 has to be included relative to the location of WSDL1 which doesn't sound right. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org