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&quot;WRAPPED&quot;" />
  <arg value="-l &quot;http://localhost/axis/services/sayhello&quot;" />
  <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
  <arg value="-p&quot;com:simpaq:helloworld&quot;" />
  <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
  <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&quot;WRAPPED&quot;" />
  <arg value="-l &quot;http://localhost/axis/services/sayhello&quot;" />
  <arg value="-n &quot;urn:com:simpaq:helloworld&quot;" />
  <arg value="-p&quot;com:simpaq:helloworld&quot;" />
  <arg value="&quot;urn:com:simpaq:helloworld&quot;" />
  <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
 
 

Reply via email to