[webservices开发]XFire在SpringSide中的应用

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

这一节,通过SpringSide来分析XFire的应用。

SpringSide开源项目是国内的开发人员所做的一个以Spring为核心的开源项目,目的是提供一个Pragmatic的企业应用开发基础和最佳实践展示。为使用Spring框架的开发者提供一个非Demo版的复杂、正式而体现最佳使用实践的参照系统。为JavaEEer必须面对的所有问题提供合理的、合乎Pragmatic原则的解决方案。采用Plugins形式组织,使开发者可快速定位所需的参考方案并做加法到自己的系统。

SpringSide中关于Web服务的配置是在

WEB-IBF/classes文件下的applicationContext-webservice.XML中配置的:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

<import resource="classpath:org/codehaus/xfire/spring/xfire.xml"/>

<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">

<property name="mappings">

<value>/BookService=bookService</value>

</property>

</bean>

<bean id="baseWebService" class="org.codehaus.xfire.spring.remoting.XFireEXPorter" abstract="true">

<property name="serviceFactory" ref="xfire.serviceFactory"/>

<property name="xfire" ref="xfire"/>

</bean>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航