-
一键部署Webservices,只需使用WSDD和TOMCAT即可
资源介绍
WSDD + TOMCAT 一键部署Webservices
配置工作:
1、将/wsdd/attachment下的axis.rar解压到tomcat的webapps文件夹下
2、配置/wsdd下的config.properties,
#tomcat的路径
tomcat.path=e:/apache-tomcat-7.0.23
#tomcat的端口
tomcat.port=8080
#Jar包名称
jar.name=MyServices.jar
3、编写/wsdd/src/com/test/MyServices.java的方法,此类中的方法将被发布到Webservices中
4、启动tomcat,运行build.xml,运行正常结果如下:
Buildfile: D:\java\wsdd\build.xml
compile:
[mkdir] Created dir: D:\java\wsdd\target\bin
[javac] D:\java\wsdd\build.xml:16: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to D:\java\wsdd\target\bin
[copy] Copying 3 files to D:\java\wsdd\target\bin
build.jar:
[jar] Building jar: D:\java\wsdd\target\MyServices.jar
[copy] Copying 1 file to e:\apache-tomcat-7.0.23\webapps\axis\WEB-INF\lib
[delete] Deleting directory D:\java\wsdd\target
deploy:
[java] Processing file src/com/wsdd/deploy.wsdd
[java] Done processing
BUILD SUCCESSFUL
Total time: 1 second
5、运行/wsdd/src/com/test/InvokeServices.java测试webservices
注意事项:运行build.xml之前一定保证tomcat启动,并能根据config.properties中的配置能够访问!
- 上一篇: AXIS开发webservice
- 下一篇: 使用axis手动编写webservice服务发布,并调用