axis2 部署webservice

1、下载axis2-1.6.4-war.zip

2、将axis2.war防止webapps下。

3、http://localhost:8080/axis2/

4、myeclipse创建web service。

public class service1 {
   public String helloworld(){
    return "helloworld";
   }
}

注:service1不能有构造函数

5、将service1放在axis2下WEB-INF的pojo(没有,新建)中,重启tomcat ,再访问即可。

http://localhost:8080/axis2/services/service1?wsdl

http://localhost:8080/axis2/services/service1/Helloworld

testclass

Service Description : No description available for this service
Service EPR : http://localhost:8080/axis2/services/testclass // http://localhost:8080/axis2/services/testclass/testmethod
Service Status : Active
原文地址:https://www.cnblogs.com/wflxz/p/5106283.html