【webservice】CXF结合spring发布简单的webservice服务
来源:互联网 发布:人工智能 嵌入式 编辑:程序博客网 时间:2024/05/04 14:09
本文先发布在:封宸落宇 再同步发布到本博客!
CXF结合spring发布简单的webservice服务!
基于CXF 发布webservice服务
1、创建web工程 ,添加spring(3.1.3)包,添加cxf(2.2.6)依赖包
2、创建配置文件:applicationContext-webservice.xml
文件内容:
然后在applicationContext.xml中将applicationContext-webservice.xml添加进来。
3、在web.xml中,添加cxf servlet定义!
上面定义的cxfservlet对于URL中带有UserPrdBindService的请求都将过滤,对于上面的定义访问:http://ip/UserPrdBindService/SyncAddressBookService?wsdl就能够访问到发布的服务。
4、创建服务接口
/
5、创建接口实现类
6、部署并启动,访问:http://ip/UserPrdBindService/SyncAddressBookService?wsdl 能够获取到wsdl文件,恭喜你已经成功利用cxf结合spring发布了一个webservice服务了!
服务发布了,那怎么访问呢,请查看我的另一篇博客!!
0 0
- 【webservice】CXF结合spring发布简单的webservice服务
- Spring与CXF结合发布WebService
- CXF结合Spring 开发SOAP WebService服务
- 搭建web项目结合spring+cxf的webservice服务
- 搭建web项目结合spring+cxf的webservice服务
- 搭建web项目结合spring+cxf的webservice服务
- cxf发布webservice 服务
- cxf+spring发布webservice服务(服务器端)
- cxf+spring发布webservice服务(客户端)
- (四)CXF整合Spring发布WebService服务
- Spring整合CXF之发布WebService服务
- Spring整合CXF之发布WebService服务
- Spring整合CXF之发布WebService服务
- 使用Spring + CXF 发布WebService服务
- Spring整合CXF配置WebService服务发布
- Spring整合CXF之发布WebService服务
- Spring+cxf发布webservice服务--注解方式
- 使用CXF发布WebService服务简单实例
- 九度oj 1112 nyoj 79
- 如何计算平面n个圆相交的公共部分的面积
- 三、第一个cocos2d程序的代码分析
- ubuntu下使用kermit协议,通过串口传送文件
- Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- 【webservice】CXF结合spring发布简单的webservice服务
- 写给Python初学者的设计模式入门
- XCode快捷键
- Selenium私房菜系列3 -- Selenium API参考手册
- Linux命令
- html 超链接 A 点击去虚线
- PAT Basic Level 1020. 月饼(25)
- Sublime Text 3技巧:支持GB2312和GBK编码
- $(document).ready(function(){ });