关于WebService 基于 Axis1.4 的一些配置

Java2WSDL
set Axis_Lib=E:/apache-tomcat-6.0.14/webapps/runws/WEB-INF/lib
set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%
set Output_Path=E:/apache-tomcat-6.0.14/webapps/runws/WEB-INF/webServiceClient/AnalyzeOrderService.wsdl
set Axis_Servlet=http://localhost:8080/runws/services/AnalyzeOrder
%Java_Cmd% org.apache.axis.wsdl.Java2WSDL -o %Output_Path% -l %Axis_Servlet% -n urn:AnalyzeOrder -pcom.zznode.inms.webservice=urn:AnalyzeOrder  com.zznode.inms.webservice.AnalyzeOrder

pause


客户端  WSDL2JAVA
set Axis_Lib=E:/apache-tomcat-6.0.14/webapps/runws/WEB-INF/lib
set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%
set Output_Path=E:/apache-tomcat-6.0.14/webapps/runws/WEB-INF/webServiceClient/src
set Package=com.zznode.inms.webservice
%Java_Cmd% org.apache.axis.wsdl.WSDL2Java -o%Output_Path% -p%Package% AnalyzeOrderService.wsdl

pause

服务端  WSDL2JAVA
set Axis_Lib=E:\apache-tomcat-6.0.32\webapps\axis\WEB-INF\lib   
 
set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%   
 
set Output_Path=F:\workspace2\src 
 
set Package = com.site.service   
 
%Java_Cmd% org.apache.axis.wsdl.WSDL2Java -o %Output_Path% -d Session -s -S true -p%Package%  DevportalToUmpApprovalWS.wsdl 
pause; 


部署命令depoly.bat:
set Axis_Lib=E:/apache-tomcat-6.0.14/webapps/runws/WEB-INF/lib
set Java_Cmd=java -Djava.ext.dirs=%Axis_Lib%
set Axis_Servlet=http://localhost:8080/runws/servlet/AxisServlet
%Java_Cmd% org.apache.axis.client.AdminClient -l %Axis_Servlet% deploy.wsdd

pause

你可能感兴趣的:(java,webservice)