[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]