spring-context-webservice.xml 2.32 KB
<?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"
	xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
		http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
		http://www.springframework.org/schema/beans
	    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
	    http://www.springframework.org/schema/context
	    http://www.springframework.org/schema/context/spring-context-3.0.xsd
	    http://cxf.apache.org/jaxws 
	    http://cxf.apache.org/schemas/jaxws.xsd">
    <import resource="classpath:META-INF/cxf/cxf.xml"/>
	<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
	<bean id="inMessageInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
	<bean id="outLoggingInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor"/>
	<bean id="eventWebService" class="com.thinkgem.jeesite.modules.restws.webservice.EventWebService"/>	
	<jaxws:server serviceClass="com.thinkgem.jeesite.modules.restws.webservice.IEventWebService" address="eventService">
	    <jaxws:serviceBean>
	        <ref bean="eventWebService"/>
	    </jaxws:serviceBean>
	    <jaxws:inInterceptors>
        	<ref bean="inMessageInterceptor"/>
    	</jaxws:inInterceptors>
	    <jaxws:outInterceptors>
	        <ref bean="outLoggingInterceptor"/>
	    </jaxws:outInterceptors>
	</jaxws:server>
	
	<!-- 
	<bean id="eventSumDataWS" class="com.thinkgem.jeesite.modules.restws.webservice.EventSumDataWS"/>	
	<jaxws:server serviceClass="com.thinkgem.jeesite.modules.restws.webservice.IEventSumDataWS" address="eventSumDataService">
	    <jaxws:serviceBean>
	        <ref bean="eventSumDataWS"/>
	    </jaxws:serviceBean>
	    <jaxws:inInterceptors>
        	<ref bean="inMessageInterceptor"/>
    	</jaxws:inInterceptors>
	    <jaxws:outInterceptors>
	        <ref bean="outLoggingInterceptor"/>
	    </jaxws:outInterceptors>
	</jaxws:server>
	 -->
</beans>