Sivakumar Jagadeesan wrote:

I went thru that chapter.. it is kind of out dated I think. It does not use wsdl2java ant task .

Are you trying to build your webservices using ant, or just concerned with unit testing with ant?


If you are just unit testing, then you shouldn't be concerned with wsdl2java, unless you want to build up the client each time you test, and see if that works.

There is a task defined in the axis jars for wsdl2java, but I was having a problem so I did it manually in my ant task.

<taskdef name="wsdl2java" classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"/>

You may need to include a classpath reference to your axis jar file.

The one I couldn't get working (something messed up in my classpaths I think) was
<taskdef resource="axis-tasks.properties" />


Again, you may need to add a classpath reference.

Your unit test should test the server-side stubs first, to ensure that your code actually works, then have client-side tests, but other than that it is like any other unit test.

Reply via email to