简体   繁体   English

您可以在Web服务引用上使用城堡动态代理吗?

[英]can you use castle dynamic proxies on web services references?

Is it possible to create a dynamic proxy on the a web service reference that has been added to a visual studio project? 是否可以在已添加到Visual Studio项目的Web服务引用上创建动态代理?

I've added the web service reference in the normal way and tried to create a dynamic proxy using castle to wrap the method invocation in a try/catch to translate any SoapExceptions, but on running it I'm getting a lot of errors around non serializable classes? 我已经以常规方式添加了Web服务参考,并尝试使用Castle创建动态代理,以将方法调用包装在try / catch中以翻译任何SoapExceptions,但是在运行它时,我遇到了很多错误可序列化的类?

has anyone done anything like this? 有人做过这样的事情吗?

thanks 谢谢

yes, this should be possible. 是的,这应该是可能的。 What errors are you getting? 您遇到什么错误? Which classes you're trying to serialize that won't serialize? 您要序列化的类不会序列化?

It's probably better to discuss it on Castle users group 最好在Castle用户组中进行讨论

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Flurl 中为 Web 请求使用代理? - How can I use proxies for web requests in Flurl? 更新Web /服务引用不起作用 - update Web/Services References not working 您可以在 Windows Phone 7 中使用 WCF 服务吗? - Can you use WCF services with Windows Phone 7? nhibernate您可以不用代理来延迟加载吗? - nhibernate can you lazyload without proxies? 如何使用svcutil为2个单独的服务生成客户端代理? - How to use svcutil to generate client proxies for 2 separate services? 如何告诉Web API / Castle Windsor路由引擎在我的存储库中使用其他数据库实例? - How can I tell the Web API / Castle Windsor routing engine to use a different database instance in my Repository? 您可以将通用控制器和通用服务用于后端CRUD API吗? - Can you use generic controllers AND generic services for a backend CRUD API? 无法将类型为“ Castle.Proxies.IAvailsContextProxy”的对象转换为类型为“ MyApp.Web.AvailsClient.AvailsContext”。 使用最小起订量和单元测试 - Unable to cast object of type 'Castle.Proxies.IAvailsContextProxy' to type 'MyApp.Web.AvailsClient.AvailsContext'. using Moq and Unit test 无法将类型为“Castle.Proxies.IIdentityProxy”的对象强制转换为“MyApp.Web.Models.CurrentUser”。 使用Moq和单元测试 - Unable to cast object of type 'Castle.Proxies.IIdentityProxy' to type 'MyApp.Web.Models.CurrentUser'. using Moq and Unit test Web服务动态调用程序问题 - Web Services Dynamic Invoker question
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM