webservice 基于spring的cxf发布
来源:互联网 发布:淘宝网禁止发布 编辑:程序博客网 时间:2024/04/27 18:54
webservice 基于spring的cxf
我的程序: http://pan.baidu.com/s/1qYCdz0w
1.我写的是web工程
首先从我的工程中copy架包
2.在classpath目录配置一个bean.xml文件
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsdhttp://cxf.apache.org/jaxws http://cxf.apache.org/jaxws"> <!-- 引cxf的一些核心配置 --> <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <jaxws:endpoint id="orderWS2" implementor="cxf_spring.OrderWSImpl" address="/orderws1"> <!-- <jaxws:inInterceptors> <bean class="com.atguigu.day01_ws.interceptor.CheckUserInterceptor"></bean> </jaxws:inInterceptors> --> </jaxws:endpoint> </beans>
3.配置web.xml文件 在web中加入:
<!-- 配置beans.xml --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:beans.xml</param-value> </context-param> <!-- 应用启动的一个监听器 --> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <!-- 所有请求都会先经过cxf框架 --> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class> org.apache.cxf.transport.servlet.CXFServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping>
4.现在启动工程了;
0 0
- spring中发布基于cxf的webservice
- webservice 基于spring的cxf发布
- cxf+spring发布webservice
- cxf+spring发布webservice
- spring +cxf 发布webservice
- spring+cxf发布webservice
- CXF+Spring发布webservice
- 基于CXF 发布 restful风格的webservice
- 开发基于CXF的 RESTful WebService web 项目 webservice发布
- 开发基于CXF的 RESTful WebService web 项目 webservice发布
- Web应用中使用CXF不基于Spring的WebService发布
- WebService-CXF-Spring基于web的cxf
- CXF+Spring发布WebService 以及 对WebService的调用
- 【webservice】CXF结合spring发布简单的webservice服务
- cxf+spring完成webservice发布
- Spring整合CXF发布WebService
- Spring 集合cxf发布webservice
- spring集成cxf发布webservice
- 集合的整数表示
- Spring的ApplicationEvent的使用
- JVM解析与分派
- iOS实现头像选取(照相或者图片库)、大小等比缩放、生成圆形头像 (转)
- 如何让phpmyadmin支持空密码登录
- webservice 基于spring的cxf发布
- 7-6日学习笔记
- oracle 导出查询结果至CSV
- 团体程序设计天梯赛-练习集 L2-008. 最长对称子串
- gitlab 设置发送邮件邮箱
- 7z - Ubuntu
- 省市县json
- centos安装gcc
- 挑战CPU运算能力-寻找完美数(Perfect Numbers)