Windows Phone 7中的HttpWebRequest超时 [英] Timeout for HttpWebRequest in Windows Phone 7
问题描述
大家好,
我正在为银行做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屋!