I have inherited a project that relies on an Apache CXF generated client. Instantiation of this client is SLOW. I think this is because the WSDLs, schemas, and DTDs are not stored locally they are fetched remotely every time.
Is there a way to generate a CXF client which automatically creates a local copy of the WSDL and schemas when the client is generated?
Is there a tool other than CXF that can generate java code which automatically pulls theses resources locally?
You can use wsdl2java
plugin, either you can provide the url or local copy reference of wsdl. For more info refer plugin documentation here and sample program here