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 bu...@us.ibm.com on 2002/08/01 18:16:52 UTC
Re: WSDL2Java calls System.exit(0);
WSDL2Java is the command-line version of the WSDL-to-Java tool. The only
reason I can think of that System.exit(0) would be a problem is if you are
trying to call WSDL2Java programmatically. But if you want to call our
WSDL-to-Java tool programmatically, you have to use the interface that
WSDL2Java uses: org.apache.axis.wsdl.toJava.Emitter:
// Instantiate the emitter
Emitter emitter = new Emitter();
// set any properties you want, such as:
emitter.setVerbose(true);
emitter.setServerSide(true);
// Run the emitter
emitter.run(<wsdl-uri>);
Russell Butek
butek@us.ibm.com
roland.polzer@comprendium.biz on 07/31/2002 08:41:36 AM
Please respond to axis-user@xml.apache.org
To: axis-user@xml.apache.org
cc:
Subject: WSDL2Java calls System.exit(0);
Hi,
It it really necessary for WSDL2Java.main() to call System.exit(0)? A
simple return would suffice, I think.
Thanks,
Roland
PS: using Beta 3