解决System.Web.Services.WebService实例与城堡(AOP的目的) [英] Resolve a System.Web.Services.WebService instance with Castle (for AOP purposes)
问题描述
我想实现日志记录与拦截现有的Web服务;在项目中,我们正在使用System.Web.Services.WebService类(asmx.cs文件的关联),但我已经在网上找到的例子使用了城堡的WCF服务。
I wanted to implement logging for an existing web service with an interceptor; in the project we're using a System.Web.Services.WebService class (those associated with asmx.cs files), but all the examples I've found online use the castle's wcf facility.
有没有一种方法来注册和解析与城堡System.Web.Services.WebService实例?
Is there a way to register and resolve a System.Web.Services.WebService instance with Castle?
推荐答案
我怀疑你可以代理一个ASMX web服务。 IIRC型号为ASMX Web服务类似于ASP.NET的WebForms,所以<一href="http://stackoverflow.com/questions/4783287/using-castle-windsor-with-interceptors-and-asp-net/4784450#4784450">the同样的限制适用。
I doubt you can proxy an asmx WebService. IIRC the model for asmx web services is similar to ASP.NET WebForms, so the same limitations apply.
这篇关于解决System.Web.Services.WebService实例与城堡(AOP的目的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!