Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Generating Java code from wsdl files using WSDL2Java.main

807606Apr 18 2007 — edited Apr 18 2007
Hi
I am using the following code to generate java code from wsdl-files.
import org.apache.axis.wsdl.*;
public class ProxyGenerator {	
public static void main(String[] args) {
		
String wsdl_location1 = "c:/eclipse/cmi-wsdl14.0/virtualcms.wsdl";
WSDL2Java.main(new String[] {wsdl_location1} );
}
This works fine when running wsdl-files one-by-one. But if I run more than one file like the code below illustrate then only the first file is processed and then execution stops.
import org.apache.axis.wsdl.*;
public class ProxyGenerator {	
public static void main(String[] args) {

String wsdl_location2 = "c:/eclipse/cmi-wsdl14.0/userserviceprofile.wsdl";
WSDL2Java.main(new String[] {wsdl_location2} );
		
String wsdl_location1 = "c:/eclipse/cmi-wsdl14.0/virtualcms.wsdl";
WSDL2Java.main(new String[] {wsdl_location1} );
}
Does anyone know why?? (I am using Eclipse 3.1)

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 16 2007
Added on Apr 18 2007
1 comment
840 views