1.JAVA生成WebService客户端命令
C:\Program Files\Java\jdk1.6.0_10\bin>wsimport -d ../bin -s ../src -p com.sudytech.gd.weather.client http://172.31.143.65:8080/WeatherService/lovo?wsdl
2.新建 buildWebServicesClient.bat,使用axis2生成
说明:将以下内容写入,执行即可,保证 jar包 和 wsdl 地址存在并正确
set HOME=D:\项目\webplus3\branches\v1.5.8.4.8.1\src\lib
java -classpath %HOME%\axis.jar;%HOME%\axis-ant.jar;%HOME%\axis-schema.jar;%HOME%\commons-discovery-0.2.jar;%HOME%\commons-logging.jar;%HOME%\jaxrpc.jar;%HOME%\log4j-1.2.8.jar;%HOME%\mail.jar;%HOME%\saaj.jar;%HOME%\wsdl4j-1.5.1.jar;;%HOME%\mail.jar;%HOME%\activation.jar; org.apache.axis.wsdl.WSDL2Java -p com.sudytech.hz.channel.client2 -t -s http://172.18.10.10:16000/services/ChannelManagerService?wsdl
pause