1.创建Web Service Project

2.Target runtime选择自己的tomcat版本

3.点finish之后,项目就建好了,然后新建class文件

4.创建要发布的方法

5.新建Web Service

New->other->Web Service

6.在HelloTestDelegate.class中找到wsdl路径,


7.运行tomcat,本机打开http://localhost:8080/HelloService/HelloTestPort?wsdl(tomcat端口号若改变这里也要相应改变)

8.以上都正常的话,就没问题了


参考资料

http://blog.csdn.net/flysun3344/article/details/51170569

http://blog.csdn.net/beauxie/article/details/52871678