xfire .1.2.6 通过ant脚本将 ?wsdl 翻译成webservice客户端
<project name="XFire-WsGen" basedir="." default="wsgen">
<path id="classpathId">
<fileset file="${basedir}/depends/*.jar">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean" description="Prepare for clean build">
<delete dir="${basedir}/src/client"/>
<mkdir dir="${basedir}/src/client"/>
</target>
<taskdef classpathref="classpathId" name="wsgen" classname="org.codehaus.xfire.gen.WsGenTask"></taskdef>
<target name="wsgen" depends="clean">
<taskdef name='WsGenTask' classname="org.codehaus.xfire.gen.WsGenTask" classpathref="classpathId"/>
<WsGenTask outputDirectory="${basedir}/src" wsdl="http://192.168.1.245:7001/ntc/services/ServiceNtcProvider?wsdl" package="myclient" overwrite="true"/>
</target>
</project>