call wsgen from ant file [message #1200701] |
Thu, 21 November 2013 06:15  |
Eclipse User |
|
|
|
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>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds