我们项目的整个架构使用的比较流行的WSH MVC组合,即webwork2 + Spring + Hibernate;
我们项目的整个架构使用的比较流行的WSH MVC组合,即webwork2 + Spring + Hibernate;
1.首先集成Apacha CXF WebService 到 Spring 框架中;
apache cxf 下载地址:http://people.apache.org/dist/incubator/cxf/2.0.4-incubator/apache-cxf-2.0.4-incubator.zip
在spring context配置文件中引入以下cxf配置
在web.xml中添加过滤器:
5.WebService 服务端 spring 配置文件 ws-context.xml
WebService 客户端 spring 配置文件 wsclient-context.xml
6.发布到tomcat服务器以后通过以下地址即可查看自定义的webservice接口生成的wsdl:
http://88.148.29.54:8080/aio/services/WebServiceSample?wsdl
7.调用WebService接口的Junit单元测试程序![]()