Windows Phone 7中的HttpWebRequest超时 [英] Timeout for HttpWebRequest in Windows Phone 7

查看:83
本文介绍了Windows Phone 7中的HttpWebRequest超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在为银行做Windows Phone 7应用程序,因为我正在使用HttpWebRequest,我将发送请求,形成一个查询字符串,在Mobile Recharge情况下.因为我需要等待第三方webservice的回复其花费很多 时间获得响应,但是在仅获得正确响应之前(意味着在服务器传递响应之前),响应给出"Web Exception".因此,请帮助我如何解决该问题.

I am doing a Windows Phone 7 application for a Bank, In that I am using HttpWebRequest ,I will be sending request forming a query string, In Mobile Recharge case  as I need to wait for response from Third party webservice  its  taking a lot of time to get response,but before getting proper response only(means before server is delivering response), response is giving "Web Exception". So please help me how to overcome from  this issue.

推荐答案

您好,

如果您希望实现自己的超时,请阅读

If you wish to implement your own timeout, please read this discussion for an example.

希望这会有所帮助,
标记

Hope this helps,
Mark


这篇关于Windows Phone 7中的HttpWebRequest超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆