码迷,mamicode.com
首页 > 编程语言 > 详细

CXF spring配置引用标签

时间:2014-07-07 18:05:56      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:http   java   io   line   服务器   div   



<!--java webservice CXF spring配置引用标签-->
<beans xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
 xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:tx="http://www.springframework.org/schema/tx"
 xmlns:aop="http://www.springframework.org/schema/aop" xmlns:servlet="http://jax-ws.dev.java.net/spring/servlet"
 xsi:schemaLocation="http://www.springframework.org/schema/beans
     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
     http://www.springframework.org/schema/tx
  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  http://www.springframework.org/schema/aop
  http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
     http://cxf.apache.org/jaxws
     http://cxf.apache.org/schemas/jaxws.xsd
     http://jax-ws.dev.java.net/spring/servlet
     http://jax-ws.dev.java.net/spring/servlet.xsd
     ">
 
 <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" />
 <!-- implementor指定webservice服务提供者 支持两种方式 直接给定服务器提供者 设置容器一个bean -->
 <!--<jaxws:endpoint id="zhongXiaServiceDelegate" implementor="com.zhongxia.service.impl.AppraiseServiceDelegateImpl"
  address="/AppraiseService"> </jaxws:endpoint> 发布服务 -->
 <jaxws:server id="zhongXiaSeviceDelegate"
  serviceClass="com.zhongxia.service.impl.AppraiseServiceDelegateImpl"
  address="/service">
  <jaxws:serviceBean>
   <!-- 发布服务bean -->
   <ref bean="appraiseServiceDelegate" />
  </jaxws:serviceBean>
  <!-- 配置输入拦截器 -->
   <jaxws:inInterceptors>
   <!--必须拦截器-->
   <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor" />
   <!-- 日志拦截器-->
   <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"></bean>
   <!--自定义拦截器-->
   <ref bean="appraiseServiceInterceptor"/>
  </jaxws:inInterceptors>
 </jaxws:server>
 
 <!-- 拦截器 -->
 <bean id="appraiseServiceInterceptor" class="com.zhongxia.util.AppraiseServiceInterceptor">
    <property name="appraiseDao" ref="appraiseDao"></property>
   </bean>

CXF spring配置引用标签,布布扣,bubuko.com

CXF spring配置引用标签

标签:http   java   io   line   服务器   div   

原文地址:http://www.cnblogs.com/hhyboy/p/3813542.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!