This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Web Services and the fly likes XML Catalog with Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "XML Catalog with Axis2 " Watch "XML Catalog with Axis2 " New topic
Author

XML Catalog with Axis2

Sumeet Chakraborty
Ranch Hand

Joined: Feb 05, 2009
Posts: 45
Hi All

I have a wsdl which has some reference to external locations (URLs). Whenever I run the wsdl2java utility , it gives me error like - an error occured trying to resolve schema referenced at ...... - reffering to the external url. This is because the enviorenment on which I am working doesnt have network connectivity. I checked it on another enviorenment where it has net connection, and it worked fine as it was able to connect to the external location.

Now to resolve this I want to use XML Catalog. But I am not aware of how to use it with ant build (build.xml). The wsdl2java utlity of Axis2 doesnot comes with any argument which allows us to specify any XML Catalog files for resolving external references of the wsdl.

Request you all to suggest me a suitable way to ressolve this. Also note that I cant change my development method, as its mandatory for me to use ant build scripts(build.xml) to do all such things. So I need to specify the XML Catalog somewhere in the build.xml target where wsdl2java is specified.

Please help.

Thanks.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
The XML catalog is an XML file which you, depending on the type of packaging, store in the following locations:
In a WAR: In WEB-INF/jax-ws-catalog.xml.
In an EJB-JAR: In META-INF/jax-ws-catalog.xml.
Thus, as far as I have understood, there is nothing you need to do in your build-file.

I don't know how to use an XML catalog with Axis. In fact, I am not even sure Axis does support XML catalogs.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
jQuery in Action, 2nd edition
 
subject: XML Catalog with Axis2
 
Similar Threads
is there any alternative for ArrayList object in web services
Ant integration with Eclipse [Build.Properties]
Help! Wsdl2Java Can't parse a Coldfusion WSDL?
Need to Generate java code from wsdl (JAX-RPC)
WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con