在 Silverlight 中使用 SoapClient 调用 WebServices 时如何处理 TimeoutException?
如何处理使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然,不。 在 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!!