Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create Stubs for multiple WSDLs using eclipse or RAD  RSS feed

 
chiranjeevi gunturu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a good number of WSDLs to consume in our application. I know to use eclipse to generates stubs by using "webservice" option, which takes "WSDL" path.
But i have to do this for all WSDLs (recursive process). Is there any shortcut or other method to generate stubs for all given WSDL urls.

Thanks in advance!!
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are plenty of ways to do that, some of them are:
1) create a class where you call org.apache.cxf.tools.wsdlto.WSDLToJava or org.apache.axis2.wsdl.WSDL2Code
2) create bash-script where you iterate through all wsdls and call "axis2\bin\wsdl2java.sh"
 
chiranjeevi gunturu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your response . If you could direct me to an example , it would be great.!!
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is official Apache CXF doc on that, take a look and let us know if something is still not clear.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!