Generate WSDL

Hi,

I'm a newbie to web service. I'm having a wsgen error stated that could not find class file. Below are the codes that I specified within the build.xml:

<target name="wsgen-init">

<taskdef name="wsgen"classname="com.sun.tools.ws.ant.WsGen">

<classpath path="${j2ee.platform.wsgen.classpath}" />

</taskdef>

</target>

<target name="wsgen-search" depends="wsgen-init, compile">

<wsgen destdir="${build.dir}/classes" resourcedestdir="${build.dir}/classes" keep="true"

genwsdl="true" servicename="{http://10.10.100.166:8080/docspace/}SearchService" sei="com.mymcsb.ds.search.session.WebServiceSearchBean">

<classpath path="${java.home}/../lib/tools.jar:${build.dir}/classes:${j2ee.platform.wsgen.classpath}:${javac.classpath}" />

</wsgen>

</target>

<target name="wsgen-generate" depends="wsgen-search"/>

I'm using eclipse to develop my project and running on JBoss AS.

Besides, is there anything else that I need to aware of?

Thanks

[1103 byte] By [spinergywmya] at [2007-11-27 1:33:32]
# 1

Likely you are having classpath issues.

Why dont you try to echo

"${java.home}/../lib/tools.jar:${build.dir}/classes:${j2ee.platform.wsgen.classpath}:${javac.classpath}"

to see if it is correct.

I recommend you to use

<classpath>

....

<pathelement path="${build.dir}/classes"/>

<pathelement path="${j2ee.platform.wsgen.classpath}"/>

</classpath>

when there are many paths in your classpath. It's more readable this way.

kchia at 2007-7-12 0:39:40 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...