<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- 引入XFire预配置信息 -->
<import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<!-- 定义访问的url -->
<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
<property name="urlMap">
<map>
<entry key="/YjkpWS">
<ref bean="YjkpService" />
</entry>
<!-- 质量追溯url -->
<entry key="/ZlzsWS">
<ref bean="ZlzsService" />
</entry>
</map>
</property>
</bean>
<!-- 使用XFire导出器 -->
<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter" lazy-init="false" abstract="true">
<!-- 引用xfire.xml中定义的工厂 -->
<property name="serviceFactory" ref="xfire.serviceFactory" />
<!-- 引用xfire.xml中的xfire实例 -->
<property name="xfire" ref="xfire" />
</bean>
<bean id="YjkpService" parent="baseWebService">
<!-- 业务服务bean -->
<property name="serviceBean" ref="yjkpService" />
<!-- 业务服务bean的窄接口类 -->
<property name="serviceClass" value="com.sdxyyt.ws.service.YjkpService" />
</bean>
<bean id="ZlzsService" parent="baseWebService">
<property name="serviceBean" ref="zlzsService" />
<property name="serviceClass" value="com.sdxyyt.zlzs.ws.service.ZlzsService" />
</bean>
</beans>
hibernate+xfire学习整理
最新推荐文章于 2024-08-12 17:02:49 发布