[jboss-user] [JBoss Web Services Users] - how to use catalog files in jbossws?

smartz do-not-reply at jboss.com
Mon Oct 5 22:24:13 EDT 2009


I have a WSDL that imports an external schema using a URL:

  | ...
  | <wsdl:types>
  | 	<xsd:schema targetNamespace="http://www.foobar.com/SimpleService/">
  | 		<xsd:import namespace="http://www.foobar.com/SimpleService/Schema"
  | 			schemaLocation=""></xsd:import>
  | 	</xsd:schema>
  | </wsdl:types>
  | ...

The URL ( is not available while consuming the WSDL (wsconsume/wsimport), nor at runtime.

I would like to avoid editing the WSDL, so I have created a catalog file (see below) and I am able to run wsconsume/wsimport correctly using the 'catalog' ant attribute; however, I cannot understand how to provide the catalog file in the runtime environment (deployed WAR/EAR).

I have tried putting the catalog file in META-INF and WEB-INF, but it does not seem to be picked.

I am running JBoss 4.2.3 with JBossWS jbossws-3.0.1-native-2.0.4.GA

Catalog file (jax-ws-catalog.xml):

  | <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
  | 	prefer="system">
  | 	<system 
  | 		systemId=""
  | 		uri="../wsdl/SimpleService.xsd" />
  | </catalog> 

thanks in advance for any help

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4258770#4258770

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4258770

More information about the jboss-user mailing list