<!--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>