<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:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-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/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<!--
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>WEB-INF\database.properties</value>
</list>
</property>
</bean>
--><import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />
<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireExporter" lazy-init="false" abstract="true">
<property name="serviceFactory" ref="xfire.serviceFactory" />
<property name="xfire" ref="xfire" />
</bean>
<bean id="userWS" class="org.ave7.xfire.ws.UserServiceImpl"></bean>
<bean id="userService" parent="baseWebService">
<property name="serviceBean" ref="userWS" />
<property name="serviceClass" value="org.ave7.xfire.ws.UserService" />
</bean>
</beans>
xfire+spring 配置
XFire Web Service 配置示例
最新推荐文章于 2025-11-27 10:55:11 发布
本文展示了使用 XFire 实现 Web Service 的 Spring 配置文件示例,包括服务提供者与服务消费者的配置方式,并引入了 XFire 的特定配置。
1300

被折叠的 条评论
为什么被折叠?



