1,将axis-bin-1_4.zip文件解压,将webapps/axis拷贝到tomcat中的TOMCAT-HOME/webapps下
2,启动tomcat,并访问 http://localhost:8080/axis/ 可以访问 说明环境已搭建好
3,在TOMCAT-HOME/webapps/axis下创建MyMath.jws文件,(注意是jws为后缀 其实也就是Java Web Service的缩写)内容如下:
public class MyMath {
public int squared(int x) {
int result = x * x;
System.out.println("the squared of " + x + " is " + result);
return result;
}
}
4,启动Tomcat,访问如下http://localhost:8080/axis/MyMath.jws,如果可以正常访问Web Service部署成功!!
5,5、采用SoapUI进行功能测试