You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mitch Gitman <cr...@excite.com> on 2002/11/10 09:06:04 UTC

running Java2WSDL via reflection

 
Forgive me -- or just ignore me -- if this question isn�t totally on-topic. I manage to run Java2WSDL successfully to generate the WSDL for my web service. I manage to run it successfully whether it�s invoked directly or from within another Java application. But when it�s invoked by another application, it never passes control back to the other application. This is the case whether I run Java2WSDL passing it the arguments to generate my WSDL or I run it just with �-h� to spit out the help text.To invoke Java2WSDL via reflection, I call:main.invoke(null, argument);where main is the main() method and argument is an Object[] of the arguments. The class org.apache.axis.wsdl.Java2WSDL is loaded by a secondary class loader, which gets fed all the Axis JARs plus my classes.How do I get Java2WSDL to pass control back to the original application?