`

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

    博客分类:
  • Java
阅读更多

      利用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>

 

分享到:
评论
2 楼 lxy19791111 2009-03-26  
是的,需要另存为本地文件,如果是URL地址我试过老是报错。
1 楼 dracularking 2009-03-26  
嗯,如果是url地址还需转化成相应文件

相关推荐

Global site tag (gtag.js) - Google Analytics