利用Axis Ant Task生成Web Service客户端代码(build.xml)

      利用Axis Ant Task生成Web Service客户端代码时的build.xml(转载自网上g的一篇文章,详细出处不记录得啦),内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<project name="wsclient" default="all" basedir=".">
	<property name="axis.home" location="D:\学习资料\WebService\Axis\axis-bin-1_4\axis-1_4" />
	<property name="options.output" location="." />
	<path id="axis.classpath">
		<fileset dir="${axis.home}/lib">
			<include name="**/*.jar" />
		</fileset>
	</path>
	<taskdef resource="axis-tasks.properties" classpathref="axis.classpath" />
	<target name="-WSDL2Axis" depends="init">
		<mkdir dir="${options.output}" />
		<axis-wsdl2java output="${options.output}" url="${options.WSDL-URI}" verbose="true" />
	</target>
	<target name="init">
		<echo>Warning: please update the associated WSDL file(s) in the folder wsdl before running the target!</echo>
		<echo>Warning: Just run the target(s) related with your developing work!</echo>
		<echo>
		</echo>
	</target>
	<target name="all">
		<antcall target="myService" />
	</target>
	<target name="myService">
		<antcall target="-WSDL2Axis">
			<param name="options.WSDL-URI" location="gatewayOrderQuery.wsdl" />
		</antcall>
	</target>
</project>

 

你可能感兴趣的:(xml,Web,ant,webservice)