spring-mvc提供httpInvoker服务
来源:互联网 发布:java集合框架 书籍 编辑:程序博客网 时间:2024/04/29 09:00
1、返回的对象,要实现Serializable接口
2、application-context.xml加入
<bean id="singleTradeQueryExporter" class="org.springframework.remoting.httpinvoker.HttpInvokerServiceExporter"> <property name="service" ref="singleQueryOrderServiceImpl"/> <property name="serviceInterface" value="cn.toltech.direct.pay.service.SingleQueryOrderService"/> </bean>
3、web.xml文件中
<servlet> <servlet-name>singleTradeQueryExporter</servlet-name> <!--名字同application-context.xml提供的bin的id--> <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>singleTradeQueryExporter</servlet-name> <url-pattern>/singleTradeQueryExporter.action</url-pattern> </servlet-mapping>
4、客服端的包结构和服务端的包结构一样,提供返回的对象和Service的Interface
5、客服端配置
<bean id="payHttpInvokerService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl" value="http://pay.i-dong.com/singleTradeQueryExporter.action"/> <property name="serviceInterface" value="cn.toltech.direct.pay.service.SingleQueryOrderService"/> </bean>
0 0
- spring-mvc提供httpInvoker服务
- httpInvoker提供远程服务调用总结(一
- httpInvoker提供远程服务调用总结(二)
- httpInvoker提供远程服务调用总结(三)
- httpInvoker提供远程服务调用总结(一)
- Spring HttpInvoker
- spring httpinvoker
- spring httpInvoker
- Spring HttpInvoker和Hessian在Spring MVC下出错
- 使用Spring MVC提供Web内容的服务
- Spring MVC 用HttpInvoker实现HTTP方式远程调用
- Spring 注解发布RMI/HTTPInvoker/Hessian/Burlap服务
- 远程服务调用之RMI、Hessian、Burlap、Spring的HTTPinvoker
- Spring中HttpInvoker实例
- Spring HttpInvoker 开发
- Spring HttpInvoker & EOFException
- Spring HttpInvoker(一)
- Spring HttpInvoker(二)
- android中如何在等分LinearLayout
- Windows下Node.js环境的搭建并结合WebStorm IDE开发环境
- java 自定义事件
- Oozie-3.3.2安装配置运行实践
- 添加一个快捷图标到网页
- spring-mvc提供httpInvoker服务
- BitBlt
- 电脑台式机清洁小知识
- oracle 中select distinct 和order by 的问题
- win7系统下Mozilla Firefox无法启动解决办法
- java访问权限控制
- Qt Model/View 学习笔记 (七)
- linux经典书籍推荐
- 使用yum来下载rpm包