xfire 做webservice总结
最近在一个项目中用了webservice做两个系统传输数据,对应数据传输的只是javabean。 一。先创建一个传输的javabean public class AtsEventIncident implements java.io.Serializable { ?// Fields ?/**
。。。。。。 二。建立传输接口 public interface IAlertService { 三。实现类,在实现类中用到了IIncidentService ,MwFormDao 。 public class AlertServiceImpl implements IAlertService{ 三。新建一个services.xml,对应的目录是 src/xfire/META-INF/xfire 四。在spring配置文件中配置 <bean id="BbtForumService"??class="org.codehaus.xfire.spring.remoting.XFireExporter">??<property name="serviceFactory" ref="xfire.serviceFactory" />??<property name="xfire" ref="xfire" />??<property name="serviceBean" ref="alertServiceImpl" />??<property name="serviceClass"???value="com.thbs.interact.webService.IAlertService" />??<property name="name" value="IncidentService" />?</bean>?<bean id="alertServiceImpl"??class="com.thbs.interact.webService.impl.AlertServiceImpl">??<property name="dao" ref="mwFormDao" />??<property name="serv" ref="incidentService" />??<property name="form" ref="commonForm" />?</bean> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Bash:使用dot或“source”调用另一个脚本 – 有什么区别?
- angular – 项目’my-lib’中找不到配置’生产’
- 在Electron(Atom Shell)应用程序中存储用户设置的位置?
- scala – 如何修复Dropping Close,因为SSL连接已经关闭了喷
- 推荐13款优秀的Twitter Bootstrap JavaScript插件
- 双机房灾备架构搭建实践
- vim – gtags可以导航回来吗?
- AngularJs ng-repeat解决循环对象出现重复项报错的问题
- angularjs – 如何以角度创建可插拔应用程序?
- scala – 为什么`trait X {def append [ – ]():Unit}`编译