spring.net 发布 webservice的一点心得

首先引用 spring-net-reference文档中的话

Interface Requirements

In order to support some advanced usage scenarios, such as the ability to expose an AOP proxy as
a web service (allowing the addition of AOP advices to web service methods), Spring.NET requires
those objects that need to be exported as web services to implement a (service) interface.
Web Services
Spring Framework (Version 1.3.2) 310

Only methods that belong to an interface will be exported by the WebServiceExporter.


这段话的意思是用 spring.net 发布成webservice的类必须实现某个接口,spring.net 会自动把这个接口的函数公布成webservice函数。

因为spring.net的大量使用面向接口的编程,而接口是不能序列化的,所以用接口声明的成员对象导致类不能发布成webservice,那么就要注意这些用接口形式声明的成员对象访问器不能包含在类所实现的接口中!

转载于:https://www.cnblogs.com/rav009/archive/2012/12/17/5131184.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值