当前位置: 代码迷 >> Web前端 >> WebService,axis-1_4的装配
  详细解决方案

WebService,axis-1_4的装配

热度:581   发布时间:2012-10-15 09:45:24.0
WebService,axis-1_4的安装

set AXIS_HOME=E:\Apache\WebService\axis-1_4

set AXIS_LIB=%AXIS_HOME%\lib

set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery-0.2.jar;%AXIS_LIB%\commons-logging-1.0.4.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar

?

run the admin client

java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

?

testing (optional)

?java -cp .;%AXISCLASSPATH% samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX
java -classpath .;%AXISCLASSPATH% samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX

注意cp和classpath的区别 cp只针对jar和zip,而classpath还可以指定文件夹路径,“.”代表当前目录

  相关解决方案