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

发布于 2024-08-10 21:48:32 字数 193 浏览 4 评论 0原文

是否可以在已添加到 Visual Studio 项目的 Web 服务引用上创建动态代理?

我已经以正常方式添加了 Web 服务引用,并尝试使用 castle 创建动态代理,将方法调用包装在 try/catch 中以转换任何 SoapExceptions,但在运行它时,我收到了很多非可序列化的类?

有人做过这样的事吗?

谢谢

Is it possible to create a dynamic proxy on the a web service reference that has been added to a visual studio project?

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?

has anyone done anything like this?

thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寂寞陪衬 2024-08-17 21:48:32

是的,这应该是可能的。
您遇到什么错误?您尝试序列化哪些类不会序列化?

最好在Castle 用户群组上讨论这个问题

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文