You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gabsaga Tata <ja...@simpaq.com> on 2006/08/31 21:26:37 UTC
Java2WSDL -o option in Ant target
The following ant target creates the helloworld.wsdl in the same directory as the build.xml file which is C:\Eclipse_Projects\workspace\Mungaka\build
<target name="Java2WSDL" description="Creates WSDL file from Java Classes">
<java classname="org.apache.axis.wsdl.Java2WSDL" fork="yes" >
<arg value="-o helloworld.wsdl" />
<arg value="-y"WRAPPED"" />
<arg value="-l "http://localhost/axis/services/sayhello"" />
<arg value="-n "urn:com:simpaq:helloworld"" />
<arg value="-p"com:simpaq:helloworld"" />
<arg value=""urn:com:simpaq:helloworld"" />
<arg value="com.simpaq.helloworld.SayHello" />
<classpath>
<path refid="APACHE_AXIS_API.classpath"/>
<path refid="compile.classpath" />
<pathelement path="${build.home}"/>
</classpath>
</java>
</target>
But when I try to specify a different location is fails with the following error:
Java2WSDL:
[java] java.io.FileNotFoundException: C:\Eclipse_Projects\workspace\Mungaka\classes\helloworld.wsdl (The filename, directory name, or volume label syntax is incorrect)
The directory C:\Eclipse_Projects\workspace\Mungaka\classes exists.
Here is the new ant target that raises the error above. Any ideas why?
<target name="Java2WSDL" description="Creates WSDL file from Java Classes">
<java classname="org.apache.axis.wsdl.Java2WSDL" fork="yes" >
<arg value="-o ${app.src}/helloworld.wsdl" />
<arg value="-y"WRAPPED"" />
<arg value="-l "http://localhost/axis/services/sayhello"" />
<arg value="-n "urn:com:simpaq:helloworld"" />
<arg value="-p"com:simpaq:helloworld"" />
<arg value=""urn:com:simpaq:helloworld"" />
<arg value="com.simpaq.helloworld.SayHello" />
<classpath>
<path refid="APACHE_AXIS_API.classpath"/>
<path refid="compile.classpath" />
<pathelement path="${build.home}"/>
</classpath>
</java>
</target>
Thanks.
Gabsaga