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 "Arthur Ryman (JIRA)" <ji...@apache.org> on 2006/05/18 14:55:05 UTC

[jira] Created: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Use XML Catalog To Improve Performance and Enable Offline Work
--------------------------------------------------------------

         Key: WODEN-14
         URL: http://issues.apache.org/jira/browse/WODEN-14
     Project: Woden
        Type: New Feature

    Reporter: Arthur Ryman


Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.

Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.

The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12434160 ] 
            
Jeremy Hughes commented on WODEN-14:
------------------------------------

Hi Graham, thanks for posting the above and the further patch.

Above you describe these classes

org.apache.woden.resolver contains:

? URIResolver interface
? SimpleURIResolver
? XMLCatalogURIResolver

org.apache.woden.internal.resolver contains:

? SchemaResolverAdapter 

but the patch contains only these new classes:

org.apache.woden.resolver.URIResolver
org.apache.woden.internal.resolver.SchemaResolverAdapter
org.apache.woden.internal.resolver.SimpleURIResolver

The package of SimpleURIResolver is different and XMLCatalogURIResvoler is missing. The sample imports org.apache.woden.internal.resolver.SimpleURIResolver. Which should it be?

I'm interested in the XMLCatalogURIResolver - will that read in catalog files that conform to the XML catalog standard?

Thx.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Arthur Ryman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12439544 ] 
            
Arthur Ryman commented on WODEN-14:
-----------------------------------

Graham, Please include the WSDL 2.0 schemas as listed at:

http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/xmlcatalog/wsdl/

Also, please log the traffic so we can see what is getting requested and what is being retrieved from the Internet. This will let us add other resources so we can work offline.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: sample.zip

Heres a simple test to demo the patch.
XML schema files not yet attached (pending agreement)

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12445971 ] 
            
John Kaputin commented on WODEN-14:
-----------------------------------

I have applied patch files woden14fileURLpath.txt and woden14SimpleURIResolverTest.txt.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12446522 ] 
            
Jeremy Hughes commented on WODEN-14:
------------------------------------

Hi ... looks like all the patches have been applied now. Is there anything left to do on this? If not can we mark as resolved?

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden-14-patch3.txt

The latest  patch for SimpleURIResolver and resolver framework. This patch replaces patches 1 & 2 and is based on current state of svn trunk.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden14SimpleURIResolverTest.txt

SimpleURIResolverTest class only patch . 

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12412351 ] 

Lawrence Mandel commented on WODEN-14:
--------------------------------------

I think the correct support will be to create an extensible URI resolver in Woden. (Xerces has this type of support and it's been very useful.) This will allow any system using Woden to customize resolution without limiting them to a catalog.

The Woden Ant task can make use of the URI resolver to contribute the content of an xmlcatalog element.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>          Key: WODEN-14
>          URL: http://issues.apache.org/jira/browse/WODEN-14
>      Project: Woden
>         Type: New Feature

>     Reporter: Arthur Ryman

>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden14SimpleURIResolvertest.txt

Attached is a working set of JUnit tests for SimpleURIResolver. There is a simgle test for each of the 4 "hot spots" for URI resolution : wsdl2:import, wsdl2:include, xsd:import and xsd:include.
As part of the setup, we simulate offline working by setting http.proxyHost to a nonesense URL. This guarantees that all referenced wsdl & schema are accessed locally (from a resources package included in the patch).

To avoid the catalog entries referring to absolute paths, a new SimpleURIResolver ctor has been added to accept a single String argument representing a base location directory path, and all target entries in the catalog are considered relative to that base. This is made use of in the testcases.

These testcases should be used in conjunction only with "woden-14-patch3.txt", the source patch, which replaces the earlier patches 1 & 2 attached to this jira. 

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12426262 ] 
            
Graham Turrell commented on WODEN-14:
-------------------------------------

The framework to be implemented will be a simplified version of the XMLEntityResolver found in Xerces. The Xerces framework can resolve any deemed "XML Entity". For our purposes we are interested in resolving just URIs. If anyone believes the scope of the framework should be wider than URI/URL resolution then now is a good time to say! This JIRA however is URI specific.

The framework will have the full extensibility capabilities of the Xerces resolver model: any resolver mechanism (that conforms to the API) may be plugged in to woden as its resolver. I intend to supply and bundle a default SimpleResolver. Provision will be made for OASIS XML Catalogs to be plugged in as the resolving mechanism, specifically that within the XML Commons Resolver 1.1 (resolver.jar), and wrapper classes provided as an API (as it is with Xerces).

Further comments very welcome!




> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden-14-patch1.txt

This patch provides the new URI Resolver framework and a sample URI resolver implementation (SimpleURIResolver). I will shortly post some usage instructions, sample files and ultimately unit testcases so it can be put through its paces. Meanwhile John K has kindly offered to create a WODEN-14 branch from this patch and be involved in its review. All comments very welcome though!!

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Resolved: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

John Kaputin resolved WODEN-14.
-------------------------------

    Resolution: Fixed

This JIRA has been resolved by Graham's contributions, but not new JIRAs exist for follow-on work (e.g. Oasis catalog and WODEN-85 for caching common Schemas and DTDs used by XML Catalog)

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden-14-patch5.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12447438 ] 
            
Jeremy Hughes commented on WODEN-14:
------------------------------------

Hi Graham, you say you "have one further patch to the simple resolver" ... I couldn't see any additional patches .. please attach when you're ready.

I think the test code should use the local snapshot copies if they're there. If they're not then download them on-the-fly from W3C CVS (as is the case today).

Please do go ahead and open whatever JIRAs you feel appropriate ... the "just do it then ask questions later" approach works for JIRAs :-)

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden-14-patch5.txt

Hi, here is the promised patch for the source updates in readiness for
the aforementioned "offline test" (ie all existing tests run in network isolation). It also includes a couple of minor bug fixes! Could a kindly committer (Jeremy?) please look it over, and if happy, commit ?
Thx, Graham.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden-14-patch5.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden14srcpatch2.txt

The latest source patch file for woden-14, based on current trunk.
Junit tests to follow...

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12450264 ] 
            
Lawrence Mandel commented on WODEN-14:
--------------------------------------

Graham - Thanks for the great work with the feature!
John, Jeremy - Thanks for helping Graham get his work into Woden.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden-14-patch5.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Arthur Ryman (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12439622 ] 
            
Arthur Ryman commented on WODEN-14:
-----------------------------------

Yes, logging must be controlled by a property file or other mechanism. The default is silence.

BTW, what is our logging strategy?

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden14fileURLpath.txt

Some improvements to the SimpleURIResolver test cases (Handling of URLs of paths containing whitespace). Committers, please check and commit? 

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12439558 ] 
            
Lawrence Mandel commented on WODEN-14:
--------------------------------------

Following up on Arthur's last comment, please make logging disabled by default. I think we should only enable logging for testing to avoid any potential confusion for our clients due to unexpected behaviour.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Graham Turrell updated WODEN-14:
--------------------------------

    Attachment: woden14-patch4all.txt

OK - this patch has same effective content as patch 3 & the Test patch combined. I've (hopefully) sorted out the inconsistancies due to an out-of-date eclipse project I have also removed absolute path info so the patch can be applied directly to a trunk/java image.

BTW: the new tests are found under test/org.apache.woden.resolver.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12450231 ] 
            
Graham Turrell commented on WODEN-14:
-------------------------------------

As John Kaputin has committed the latest patch described above, I believe this JIRA can now be closed. Open JIRAs exist for follow-ons such as OASIS catalog, offline working etc.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden-14-patch5.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Closed: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Arthur Ryman (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Arthur Ryman closed WODEN-14.
-----------------------------


Closing since the resolver is done. We still need to package the schemas in a jar.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden-14-patch5.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12434225 ] 
            
Graham Turrell commented on WODEN-14:
-------------------------------------

Mea Culpa - my apologies for the confusion - due to some final rejigging of the packages etc. The sourec in the zip file is correct, the text description has the errors.

The correct package descriptions are :

org.apache.woden.resolver contains:

. URIResolver interface

org.apache.woden.internal.resolver contains:

- SchemaResolverAdapter 
- SimpleURIResolver

XMLCatalogURIResolver will be the subject of a subsequent patch. It is an alternative to SimpleURIResolver and will indeed support OASIS XML Catalog format (in fact, the URI Resolution subset). Sorry to make you have to wait for that .. :)


> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WODEN-14?page=all ]

Lawrence Mandel updated WODEN-14:
---------------------------------

    Component: Parser
    Assign To: Lawrence Mandel

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>          Key: WODEN-14
>          URL: http://issues.apache.org/jira/browse/WODEN-14
>      Project: Woden
>         Type: New Feature

>   Components: Parser
>     Reporter: Arthur Ryman
>     Assignee: Lawrence Mandel

>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12434100 ] 
            
Graham Turrell commented on WODEN-14:
-------------------------------------

Here is detail on the patch - and at the end how to run the sample:

This patch includes a framework for allowing resolution of any URI found in the source document(s). The framework allows for any conformant URI resolver implementation (ie implement the URIResolver interface) to be "plugged-in" at runtime.  A simple default resolver implementation is provided (SimpleURIResolver).
The framework has been incorporated into both the DOM and the OM parsers.

Packages:
Two new packages - org.apache.woden.resolver (API : framework classes, interfaces and concrete implementations) and org.apache.woden.internal.resolver (resolver helper classes).

org.apache.woden.resolver contains:

•	URIResolver interface
•	SimpleURIResolver
•	XMLCatalogURIResolver

org.apache.woden.internal.resolver contains:

•	SchemaResolverAdapter

Changes to existing classes for the Framework:

The URI resolver is used to resolve document URLs in the following places in a target WSDL 2 document:

1) <wsdl:description> Physical document URLs in "xsi:schemaLocation" attribute value.
2) <wsdl:import> and <wsdl:include> "location" attribute values;
3) <xsd:schema>  : <xsd:import> and <xsd:include> "schemaLocation" attribute values.


Writing a new resolver:

Write a class that implements org.apache.woden.resolver.URIResolver.
The method java.net.URI resolveURI(java.net.URI uri)  should return a resolved URI based on the argument uri, or null if no mapping supplied for uri.

Specifying default resolver (org.apache.woden.resolver.default="class spec")

The default URI resolver is initially set to the SimpleURIResolver. This means that this resolver will be used if not overridden programmatically. However it is possible to change the default resolver to some other, via the .apache.woden.resolver.default property. This can be specified either :

(1) by the jvm command line option (-D),for example:
-Dorg.apache.woden.resolver.default=com.myplace.mypackage.resolver.MyURIResolver
or
(2) as an equivalent entry in JAVAHOME\lib\wsdl.properties, for example:
org.apache.woden.resolver.default=com.myplace.mypackage.resolver.MyURIResolver

Associating a (non-default) URI resolver programmatically:

Instantiate a URIResolver object and register it with the WSDLReader prior to involving WSDLReader.readWSDL(). For example:

factory = new OMWSDLFactory(); // or DOMWSDLFactory() if desired			
WSDLReader reader = factory.newWSDLReader();
reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);	
reader.setURIResolver(new MyURIResolver()); // the one additional line of code needed.

Configuring the Simple Resolver (specifying the simple resolver mappings file)
This can be specified in the same ways as for the default URI Resolver as described above, namely:

(1) by the jvm command line option (-D),for example:
-Dorg.apache.woden.resolver.simpleresolver.catalog=c:\simpleresolver.catalog
or
(2) as an equivalent entry in JAVAHOME\lib\wsdl.properties, for example:
org.apache.woden.resolver.simpleresolver.catalog=c:\simpleresolver.catalog

Where the right hand side is the physcial location of the catalog file to be used my SimpleURIResolver . 

Contents of the Simple Resolver mapping file
This is a text file comprising of a one line entry for each document URL found in the target WSDLs that requires mapping to a different physical location that that stated in the document. The actual location is also a URL and may be on the local filesystem or over the net.

......{talk about escape sequences and example lines, and the local-xsd set}


Running the supplied SimpleURIResolver test

Setup:

1)	download the simpleresolver.catalog to your local machine
2)	download the sample wsdl files (and schema) to a local directory
3)	edit the local file names in simpleresolver.catalog to point to the downloaded files
4)	compile and run the test.

Running:

Arg0 - the source wsdl
Arg1 (optional) - OM | DOM - selects the corresponding parser to use in the test. Default is Woden default parser (currently DOM).

The easiest way is to point to your simpleresolver.catalog from the command line (or IDE equivalent), something like:

> java -Dorg.apache.woden.resolver.simpleresolver.catalog=c:\simpleresolver.catalog wsdl20test.Woden14SimpleResolverTest c:\woden-14test\woden14.wsdl OM


> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12439627 ] 
            
Lawrence Mandel commented on WODEN-14:
--------------------------------------

I'm not sure that we have a logging strategy. Let's talk about this on next week's status call.

> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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] Commented: (WODEN-14) Use XML Catalog To Improve Performance and Enable Offline Work

Posted by "Graham Turrell (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WODEN-14?page=comments#action_12447317 ] 
            
Graham Turrell commented on WODEN-14:
-------------------------------------

Hi ... I have one further patch to the simple resolver to allow the complete woden test suite to run in network isolation. 

In order to run offline, I have taken local snapshot copies of the W3C test wsdl/schema
and created a catalog file to reference those files locally. Given that it seems we are now OK to include these files legally in Woden, we could make them part of the test suite - either by hard-wiring them into svn or creating an ant-task to go get them. What are your thoughts?

Either way, I propose to submit a patch for only the src changes: this concludes the implementation of a URI Resolver so I suggest that at that point we may close Woden-14. Due to the (potentially)  non-trivial nature of the changes for the offline testing, I propose to open another jira for the test issue. Unless there are any objections I will create that src patch and attach it here for submission. 

I also propose to open another jira to cover the OASIS resolver integration (which has not been included here).

Finally, there is the request for logging of (candidate) resolved URI's. Given that there is not yet a logging framework in Woden, I suggest this is a further jira and that resolver logging would be added as a part of this. Again, let me know what you think.




> Use XML Catalog To Improve Performance and Enable Offline Work
> --------------------------------------------------------------
>
>                 Key: WODEN-14
>                 URL: http://issues.apache.org/jira/browse/WODEN-14
>             Project: Woden
>          Issue Type: New Feature
>          Components: Parser
>            Reporter: Arthur Ryman
>         Assigned To: Lawrence Mandel
>         Attachments: sample.zip, woden-14-patch1.txt, woden-14-patch3.txt, woden14-patch4all.txt, woden14fileURLpath.txt, woden14SimpleURIResolverTest.txt, woden14SimpleURIResolvertest.txt, woden14srcpatch2.txt
>
>
> Woden currently retrieves XML schemas from the Internet each time it performs a validator. This causes a multisecond performance degradation and prevents validation from working when there is no Internet access.
> Woden should use an XML catalog to resolve references to Internet resources. There should be an API for controlling the XML catalog so that Woden can be imbedded in other systems, such as Eclipse and Ant, that provide XML catalogs.
> The XML catalog should be consulted when resolving all resource requests, e.g. for XML schema or WSDL.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://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