首页 > 学院 > 开发设计 > 正文

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

2019-11-18 11:26:45
字体:
来源:转载
供稿:网友

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

   



发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表