Eclipse + Axis 编写WebService
环境:Eclipse 4.7 + Axis + Tomcat8.5 一、创建Dynamic Web Project并编写HelloService.java package com.demo.axistest.service; public class HelloService { public String sayHello(String name) { return "Hello, " + name; } } 二、右键项目-New-Others,选择Web Service 在Service Implementation填入HelloService的路径,如下图 启动Server 三、在浏览器中输入 http://localhost:8080/axistest/services,就可以看到发布的Web Service了 来源: oschina 链接: https://my.oschina.net/u/2423277/blog/1802494