you are very close.... it all has to do with classpaths and the stuff. Here's
what I did in my build.xml. I had axis installed at /usr/local/axis
<path id="axis.classpath">
<fileset dir="/usr/local/axis/lib/">
<include name="**/*.jar" />
</fileset>
</path>
<taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
This is including every jar in the axis subdirectory which is overkill, but
not bad that I know of except for efficiency reasons. I suspect you could
provide a more explicit include and make stuff run a bit faster.
Hope that helps.
-C-
I'm relatively new to Web services, ANT and NetBeans (although an old hat to J2EE, make and vi), so I figure I learn all 3 simultaneously for my prototype project.
I can run java2wsdI manually from the commandline, but I cannot get the java2wsdl ant task to run properly under netbeans. This is what I've done:
1) put axis-ant.jar in NETBEANS_HOME/lib
2) added the following entry to build.xml:
<target description="java2wsdl">
<axis-java2wsdl classname="${my_service}" location="${my_url}"/>
</target>
When I build this target, I get "Could not create task or type of type: axis-java2wsdl". So next I tried adding the following
3) added at beginning of build.xml:
<taskdef name="axis-java2wsdl" classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"/>
Now I get "taskdef class org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask cannot be found". Help! Am I placing axis-ant.jar in the wrong place? Or is my build.xml syntax horribly wrong? Thanks!
Gene