• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL2Java exits JVM.. how to handle it?

 
Anu pama Dande
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using WSDL2Java for generting stubs of Webservice.

My class MyWSDL2Java overrides WSDL2Java and m executing the run method inside my class.

But after the run (which says it runs the WSDL2Java tool) method is executed the application is exiting out of JVM.

I have processing to be done after running the WSDL2Java, I mean after generating the Stubs.

I tried to handle this by running the run process in separate thread. Even then it is exiting the JVM.

Any help is really appreciated.

Thanks,
Anu.
 
Anu pama Dande
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I got the solution in some other forum.

I have replace the WSDL2Java run method with the following


try
{
emit.setOutputDir(SOACodeGenerator.getPath());
emit.setPackageName(MyWSDL2Java.this.packname.trim());
emit.run(_instance.getWsdlName());
}
catch(Exception e)
{
e.printStackTrace();
}

Njoy,
Anu.
 
chinna sankar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anu pama Dande,

I am working for wsdl2java from my application.If possible can u share your code. It will help me alot.

Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!