There is a catalog option in the wsdl2ws plugin, that points your resources that you include to local disc.
https://cwiki.apache.org/CXF20DOC/wsdl-to-java.html Second param there. The arguments should correspond here https://cwiki.apache.org/CXF20DOC/maven-cxf-codegen-plugin-wsdl-to-java.html A catalog is : http://fusesource.com/docs/framework/2.2/jaxws/JAXWSWSDLBootstrapCatalog.html http://www.oasis-open.org/committees/download.php/14041/xml-catalogs.html And these are good to know : http://cxf.apache.org/docs/schemas-and-namespaces.html It should look something like On Aug 27, 2010, at 3:50 PM, Benson Margulies wrote: > I mean an XML OASIS catalog. > > If you want to predownload all the pieces, you need to tell CXF that > it can find the content of certain URLs in certain files. > > I'm a little rusty on how to tell wsdl2java about a catalog, if no one > else pipes up I'll research for you. > > On Fri, Aug 27, 2010 at 5:26 PM, nthali <[email protected]> wrote: >> >> Thanks, but i have no clue what a catalog is, and how to use it. some more >> digging through the Maven user guide only talked about an ArchetypeCatalog >> which didn't seem relevant. >> could you point me to any resources on catalogs? >> >> But i did find this thread from Feb 2009: >> http://cxf.547215.n5.nabble.com/Using-wsdl2java-behind-a-proxy-server-td562920.html >> in which you seemed to face a similar problem - i used Daniel Kulp's advice >> and edited the wsdl2java.bat to add the -Dhttp.proxyHost and >> -Dhttp.proxyPort, and instead got this: >> >> Caused by: javax.wsdl.WSDLException: WSDLException (at >> /definitions/types/xsd:schema/xsd:schema): faultCode=PARSER_ERROR: Problem >> parsing 'http://schemas.xmlsoap.org/ws/2002/12/policy'.: >> org.xml.sax.SAXParseException: The markup in the document following the root >> element must be well-formed. >> >> I still think it's not finding the file or something, because even though i >> specified the proxy host and port, i'm not sure how to specify a username >> and password on the command line... >> >> Any suggestions? >> THanks, >> Nilesh >> -- >> View this message in context: >> http://cxf.547215.n5.nabble.com/using-wsdl2java-on-a-wsdl-located-on-disk-tp2740382p2740565.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> Johan Edstrom [email protected] They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety. Benjamin Franklin, Historical Review of Pennsylvania, 1759
