Eclipse 安装Web Service、Axis2插件

时间:2024-03-26 22:08:32

一、安装Web Service插件

1.打开eclipse,点击Help->Install New Software 在 work with输入在 work with输入你的eclipse版本号,点击一下后面向下箭头。(或者在 work with输入Oxygen - http://download.eclipse.org/releases/oxygen/,点击一下后面向下箭头,版本号他会自动补全。)

通过点击Help—>About Eclipse查看你的版本号

Eclipse 安装Web Service、Axis2插件

Eclipse 安装Web Service、Axis2插件

2.勾选Web,XML,javaEE and OSGi Enterptrise Development。 建议去掉Contact all update sites during install to find required software,不然可能会出现中断错误:Installing Software'has encountered a problem。点击Next。

Eclipse 安装Web Service、Axis2插件

3.点击Next。 

Eclipse 安装Web Service、Axis2插件

4.选择 I accept the terms of the license agreements,然后点击Finish。 

Eclipse 安装Web Service、Axis2插件

5.之后就开始安装了。这里要耐心等待,因为是链接外网下载软件包安装的,所以安装速度很慢。(我的用了半小时多分钟)

Eclipse 安装Web Service、Axis2插件

6.安装完成后,可根据需要是否立即重启eclipse,或稍后重启。

Eclipse 安装Web Service、Axis2插件

7.检测安装是否成功。    点击File —> New —> Other,然后查看是否有以下文件结构。 

Eclipse 安装Web Service、Axis2插件

二、安装Axis2插件

1.下载Axis2的最新版本Axis2:https://mirror.bit.edu.cn/apache/axis/axis2/java/core/ ,选择1.7.9的三个包包即

  axis2-eclipse-codegen-plugin-1.7.9.zip

  axis2-eclipse-service-plugin-1.7.9.zip

  axis2-1.7.9-bin.zip

axis2-1.7.9-bin.zip这个文件,解压缩得到的目录名axis2-1.7.9,目录内的文件结构如下

Eclipse 安装Web Service、Axis2插件

2.

axis2-eclipse-codegen-plugin-1.7.9.zip     

axis2-eclipse-service-plugin-1.7.9.zip

解压

org.apache.axis2.eclipse.codegen.plugin_1.7.9.jar

org.apache.axis2.eclipse.service.plugin_1.7.9.jar

放到eclipse安装目录dropins文件夹下

重启Eclipse,在Eclipse的菜单栏中,Window --> Preferences --> Web Service --> Axis2-->Perferences,在Axis2 Runtime 中选择Axis2解压缩包的位置,设置好后,点"Apply and Close"即行,如下图。

Eclipse 安装Web Service、Axis2插件

 3.检测安装是否成功。    点击File —> New —> Other,然后查看是否有以下文件结构。 

Eclipse 安装Web Service、Axis2插件

参考链接:https://blog.51cto.com/10960988/1794451