主题内容:
本节讲解Eclipse开发Webservice中的环境搭配,我们使用axis2发布webservice服务
详细讲解:
1. 安装Eclipse的过程在这里就不说了
2.官网下载Tomcat服务器,Axis2的war包。http://axis.apache.org/axis2/java/core/download.cgi
将其中的Axis2.war包放到Tomcat发布的webApp目录下就可以了。
启动Tomcat看到如下界面说明你成功了:
Welcome!Welcome to the new generation of Axis. If you can see this page you have successfully deployed the Axis2 Web Application. However, to ensure that Axis2 is properly working, we encourage you to click on the validate link.
|
3.安装Eclipse的Axis2插件
在Axis2官网上有个工具列表。axis2-eclipse-codegen-plugin和axis2-eclipse-service-plugin
解压放置在eclipse/plugins,
eclipse中install new software->http://download.eclipse.org/release/luna 选中最后一项(包含axis)安装
. 重启;
new->other中多出webservice等选项则成功
4.绑定axis2-1.6.2
http://axis.apache.org/axis2/java/core/download.cgi下载axis2-1.6.2-bin,解压,eclipse中window->perference->web service->axis2 preference选中解压后文件中的axis2-1.6.2