You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "John Kaputin (JIRA)" <ji...@apache.org> on 2007/01/16 19:24:28 UTC

[jira] Created: (WODEN-124) should be based on namespace and treat location as a hint only

<import> should be based on namespace and treat location as a hint only
-----------------------------------------------------------------------

                 Key: WODEN-124
                 URL: https://issues.apache.org/jira/browse/WODEN-124
             Project: Woden
          Issue Type: Bug
          Components: Parser
            Reporter: John Kaputin
         Assigned To: John Kaputin
             Fix For: M7


Woden should correctly support WSDL importing, as per the WSDL 2.0 spec Part 1, section 4.2 Importing Descriptions. wsdl:import  is a namespace import. The location attribute is optional and is treated as a hint only. 

Currently, Woden will attempt to resolve the location attribute of a wsdl:import to a document, but will not attempt to resolve a namespace only import.  The requirement  on Woden is to associated an imported namespace with ALL imported documents that have that as their targetNamespace.  

Extracted from Woden weekly call Minutes 9th Jan 07 (see [1] below):

Arthur: Import relates to namespace not location, so WSDL content for each
namespace should be represented in Woden in a 'master' description doc
keyed of that namespace and any retrieved documents from that namespace
should be included in that master document. This master description is
stored in a 'catalog' keyed by NS. When a wsdl:import is processed it
should try to resolve against the catalog first, before trying to retrieve
a document. If the wsdl:import has no location attribute, this catalog is
the way to resolve the import.
John: So if a wsdl import cannot be resolve to anything (via this catalog
or externally) it is an error? At least, it results in an error if the
component model contains any components from this namespace?
Arthur: correct.
John: Currently Woden always tries to retrieve a document based on the
location attribute of a wsdl:import. It does check a cache to reuse the
DescriptionElement if the document has already been retrieved, but it does
not do anything special to resolve a wsdl import without a location
attribute. This catalog mechanism sounds like the solution.

[1] http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200701.mbox/%3cOF93DE8BEA.C7A394F6-ON8025725E.00588B57-8025725E.00668E90@uk.ibm.com%3e

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (WODEN-124) wsdl:import should resolve by namespace, not just by location

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-124:
-------------------------------

    Fix Version/s:     (was: M7)
          Summary: wsdl:import should resolve by namespace, not just by location  (was: <import> should be based on namespace and treat location as a hint only)

> wsdl:import should resolve by namespace, not just by location
> -------------------------------------------------------------
>
>                 Key: WODEN-124
>                 URL: https://issues.apache.org/jira/browse/WODEN-124
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>         Assigned To: John Kaputin
>
> Woden should correctly support WSDL importing, as per the WSDL 2.0 spec Part 1, section 4.2 Importing Descriptions. wsdl:import  is a namespace import. The location attribute is optional and is treated as a hint only. 
> Currently, Woden will attempt to resolve the location attribute of a wsdl:import to a document, but will not attempt to resolve a namespace only import.  The requirement  on Woden is to associated an imported namespace with ALL imported documents that have that as their targetNamespace.  
> Extracted from Woden weekly call Minutes 9th Jan 07 (see [1] below):
> Arthur: Import relates to namespace not location, so WSDL content for each
> namespace should be represented in Woden in a 'master' description doc
> keyed of that namespace and any retrieved documents from that namespace
> should be included in that master document. This master description is
> stored in a 'catalog' keyed by NS. When a wsdl:import is processed it
> should try to resolve against the catalog first, before trying to retrieve
> a document. If the wsdl:import has no location attribute, this catalog is
> the way to resolve the import.
> John: So if a wsdl import cannot be resolve to anything (via this catalog
> or externally) it is an error? At least, it results in an error if the
> component model contains any components from this namespace?
> Arthur: correct.
> John: Currently Woden always tries to retrieve a document based on the
> location attribute of a wsdl:import. It does check a cache to reuse the
> DescriptionElement if the document has already been retrieved, but it does
> not do anything special to resolve a wsdl import without a location
> attribute. This catalog mechanism sounds like the solution.
> [1] http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200701.mbox/%3cOF93DE8BEA.C7A394F6-ON8025725E.00588B57-8025725E.00668E90@uk.ibm.com%3e

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (WODEN-124) Resolve wsdl:import by namespace, local cache first

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WODEN-124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Kaputin updated WODEN-124:
-------------------------------

    Summary: Resolve wsdl:import by namespace, local cache first  (was: wsdl:import should resolve by namespace, not just by location)

> Resolve wsdl:import by namespace, local cache first
> ---------------------------------------------------
>
>                 Key: WODEN-124
>                 URL: https://issues.apache.org/jira/browse/WODEN-124
>             Project: Woden
>          Issue Type: Bug
>          Components: Parser
>            Reporter: John Kaputin
>         Assigned To: John Kaputin
>
> Woden should correctly support WSDL importing, as per the WSDL 2.0 spec Part 1, section 4.2 Importing Descriptions. wsdl:import  is a namespace import. The location attribute is optional and is treated as a hint only. 
> Currently, Woden will attempt to resolve the location attribute of a wsdl:import to a document, but will not attempt to resolve a namespace only import.  The requirement  on Woden is to associated an imported namespace with ALL imported documents that have that as their targetNamespace.  
> Extracted from Woden weekly call Minutes 9th Jan 07 (see [1] below):
> Arthur: Import relates to namespace not location, so WSDL content for each
> namespace should be represented in Woden in a 'master' description doc
> keyed of that namespace and any retrieved documents from that namespace
> should be included in that master document. This master description is
> stored in a 'catalog' keyed by NS. When a wsdl:import is processed it
> should try to resolve against the catalog first, before trying to retrieve
> a document. If the wsdl:import has no location attribute, this catalog is
> the way to resolve the import.
> John: So if a wsdl import cannot be resolve to anything (via this catalog
> or externally) it is an error? At least, it results in an error if the
> component model contains any components from this namespace?
> Arthur: correct.
> John: Currently Woden always tries to retrieve a document based on the
> location attribute of a wsdl:import. It does check a cache to reuse the
> DescriptionElement if the document has already been retrieved, but it does
> not do anything special to resolve a wsdl import without a location
> attribute. This catalog mechanism sounds like the solution.
> [1] http://mail-archives.apache.org/mod_mbox/ws-woden-dev/200701.mbox/%3cOF93DE8BEA.C7A394F6-ON8025725E.00588B57-8025725E.00668E90@uk.ibm.com%3e

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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