Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » call wsgen from ant file(call wsgen from ant file)
call wsgen from ant file [message #1200701] Thu, 21 November 2013 06:15 Go to next message
Salwa Alzahmi is currently offline Salwa Alzahmi
Messages: 18
Registered: June 2013
Junior Member
Hello,

I am trying to generate WSDL programmatically of my Java interfaces class ..I currently generate java class from a "model " and compile them with ant built file. and then run wsgen command from the cmd . With this step i can generate wsdl ... however i want to automate the process by compiling the Java class and then generate wsdl progromaticaly using Axis API(calling wsgen progromaticaly from java code). I really couldn't find the starting code for this ??

another issue:
if I want to add wsgen to ant build file what the proper command of it as the below way is not working proberly : I keep getting the error-> ( classname is not found)

<taskdef name="wsgen" classname= "com.mkyong.ws.ServiceInfo" >
<classpath refid="jaxws.classpath" />

</taskdef>
<path id="jaxws.classpath">
<pathelement location="${javaEE.home}/lib/appserv-ws.jar"/>
<pathelement location="${javaEE.home}/lib/activation.jar"/>
<pathelement location="${javaEE.home}/lib/javaee.jar"/>
<pathelement location="${javaEE.home}/lib/javaws.jar"/>
<pathelement location="${javaEE.home}/jdk/jre/lib/rt.jar"/>
</path>
Re: call wsgen from ant file [message #1219430 is a reply to message #1200701] Tue, 03 December 2013 15:07 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2142
Registered: July 2009
Senior Member
Which class is not found? Are you sure this is the right forum in which to ask?

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Extension Point for Adding CSS Content Assist?
Next Topic:Content Assist problem during XML editing
Goto Forum:
  


Current Time: Thu Apr 24 14:51:53 EDT 2014

Powered by FUDForum. Page generated in 0.02976 seconds