axis 创建web service


server 端 


set AXIS_PATH=D:\Axis\helloWebService
set AXIS_LIB=%AXIS_PATH%\lib
set WSDL_URL=%AXIS_PATH%\wsdl\ws4website.wsdl
set OUT_PATH=%AXIS_PATH%\server
set JAVA=java -Djava.ext.dirs=%AXIS_LIB%


%JAVA%  org.apache.axis.wsdl.WSDL2Java -s -o %OUT_PATH% %WSDL_URL% -p com.newyulong.mdnss.website.bean


pause


client 端

set AXIS_PATH=D:\Axis\helloWebService
set AXIS_LIB=%AXIS_PATH%\lib
set WSDL_URL=%AXIS_PATH%\wsdl\ws4website.wsdl
set OUT_PATH=%AXIS_PATH%\client
set JAVA=java -Djava.ext.dirs=%AXIS_LIB%


%JAVA% org.apache.axis.wsdl.WSDL2Java %WSDL_URL% -o %OUT_PATH% -p com.newyulong.mdnss.website.bean


pause


create wsdd


set AXIS_PATH=D:\Axis\helloWebService
set AXIS_LIB=%AXIS_PATH%\lib
set Java_Cmd=java -Djava.ext.dirs=%AXIS_LIB%
set lib_deploy=D:\bx_projects\mdnss-ws4website\webapp\WEB-INF
%Java_Cmd%  org.apache.axis.client.AdminClient -lhttp://localhost:8080/mdnss-ws4website/services/AdminService %lib_deploy%\deploy.wsdd


pause


已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页