• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ant task to comiple WSDL and XSD file

 
Ajoo Bar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to use ant to compile a wsdl file. It works fine if I have a single WSDL file. But if I have a wsdl file which is referencing an wsdl interface and XSD files, the below script doesn't generate all the required stubs.


<project name="TestWSDL" default="codegen" basedir=".">

<path id="axis2.classpath">
<fileset dir="C:\axis2\axis2-1.2\axis2-1.2\lib">
<include name="**/*.jar" />
</fileset>
</path>

<target name="codegen">

<taskdef name="axis2-wsdl2java"
classname="org.apache.axis2.tool.ant.AntCodegenTask"
classpathref="axis2.classpath"/>

<axis2-wsdl2java
wsdlfilename="C:\_Temp\AxisTest\wsdl\myfirst.wsdl"
output="C:\_Temp\AxisTest\CompiledCode" />
</target>

</project>

Thanks
Ali
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!