龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > JAVA开发 >

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

时间:2009-12-23 15:42来源:未知 作者:admin 点击:
分享到:
这一节,通过SpringSide来分析XFire的应用。 SpringSide开源项目是国内的开发人员所做的一个以Spring为核心的开源项目,目的是提供一个Pragmatic的企业应用开发基础和最佳实践展示。为使用

这一节,通过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>

   


  
精彩图集

赞助商链接