在 Silverlight 中使用 SoapClient 调用 WebServices 时如何处理 TimeoutException?

发布于 2024-07-08 00:15:22 字数 329 浏览 4 评论 0原文

如何处理使用 SoapClient 调用 WebServices 时生成的 TimeoutException?

似乎没有任何事件需要处理来捕获调用 Web 服务时生成的任何异常。

是否可以捕获抛出的任何异常,尤其是 TimeoutException?

我还将这个问题发布到 Silverlight.net 论坛: http://silverlight.net/论坛/p/46029/124010.aspx

How do you handle a TimeoutException that is generated when calling WebServices using the SoapClient?

There doesn't seem to be any event to be handled in order to catch any Exceptions generated when calling web services.

Is it possible to catch any Exceptions thrown, especially the TimeoutException??

I also posted this question to the Silverlight.net forums: http://silverlight.net/forums/p/46029/124010.aspx

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

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

发布评论

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

评论(1

野稚 2024-07-15 00:15:22

显然,。 在 Silverlight 2 中调用 Web 服务方法时,无法处理抛出的任何异常。当然,除非您创建 Visual Studio 自动为您生成的您自己的 SoapClient 修改版本。 这是一个可怕的设计缺陷!

Apparently, NO. There is no way to handle any Exceptions thrown when invoking Web Service Methods in Silverlight 2. Unless of course you create your own modified version of the SoapClient that Visual Studio auto-generates for you. This is a Terrible Design Flaw!!

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