Resolve a System.Web.Services.WebService instance with Castle (for AOP purposes)

风流意气都作罢 提交于 2019-12-24 15:53:32

问题


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.

Is there a way to register and resolve a System.Web.Services.WebService instance with Castle?


回答1:


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.



来源:https://stackoverflow.com/questions/4852175/resolve-a-system-web-services-webservice-instance-with-castle-for-aop-purposes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!