MyEclipse10.0,Spring3.0,Mysql,5.0,JAX-W,2.1
0、导入项目
(链接: 百度云盘 密码: km6m)
1、更改Java项目名称
2、更改web项目名称,Web Context-root
3、更改包名
对应applicationContext.xml中包名修改
4、更改Config.properties数据库配置
5、更改WebRoot-WEB-INF下sun-jaxws.xml和web.xml文件
删除sun-jaxws.xml中的endpoint节点
删除web.xml中的servlet和servlet-mapping节点
6、生成发布webservice
New-Others
在tomcat下运行项目
浏览器中输入http://localhost/wstemplate/wstport?wsdl查看,其中wstemplate是web项目名,wstport是Service port