File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes jax-ws catalog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jax-ws catalog" Watch "jax-ws catalog" New topic

jax-ws catalog

Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
Hi Ranchers,

I have a question related to the use of jax-ws-catalog.xml. Is it only beneficial when I have webservice client?
The specification jax-ws jsr 224 section 4.4 clearly says.

use of the catalog is in no way restricted to client uses of WSDL location URIs. In particular, resolutions of URIs to WSDL and schema documents that arise during the publishing of endpoint metadata (see 5.2.5) are subject to the requirements in this section, resulting in catalog-based URI resolutions.

and section 5.2.5 says.

When resolving URI references to other documents when processing metadata documents or any of the documents they may transitively reference, a JAX-WS implementation MUST use the catalog facility defined in section 4.4, except when there is a metadata document whose system id matches the URI in question. In other words, metadata documents have priority over catalog-based mappings.

I couldn't understand what does that means. Please could anyone explains this part of the specification using a valid usecase or an example.

I agree. Here's the link:
subject: jax-ws catalog
It's not a secret anymore!