生成Axis1客户端的ant脚本

1.build.xml 

<?xml version="1.0" encoding="UTF-8"?>
<project name="WebServicesClient" basedir="." default="GenerateWsClients">
 <property file="build.properties" />
 <path id="project.classpath">
  <fileset dir="lib" includes="**/*.jar" />
 </path>
 <target name="GenerateWsClients" depends="">
  <axis-wsdl2java debug="true" output="${generated.dir}" testcase="true" verbose="true" url="${wsdl-file}" skeletondeploy="false" serverside="false" typemappingversion="1.2" noimports="true">

<!--这里可以配置多个-->
   <mapping namespace="http://xxx.xxxx.com" package="com.xxxx.xxx" />
   <mapping namespace="http://xxx.xxxx.xxxx.com" package="com.xxxx.xxxx.xxx" />
  </axis-wsdl2java>
 </target>

 <taskdef resource="axis-tasks.properties" classpathref="project.classpath" />
</project>

2.build.properties

generated.dir=src
wsdl-file=http://ip:port/DemoWS/services/DemoWebService?wsdl

你可能感兴趣的:(生成Axis1客户端的ant脚本)