开发者

How to use ksoap timeout in blackberry?

开发者 https://www.devze.com 2023-02-21 23:44 出处:网络
I would like to make make userregistartion app in Blackberry. In which I have used ksoap2 to send request to server and get response from server.

I would like to make make userregistartion app in Blackberry. In which I have used ksoap2 to send request to server and get response from server.

I want that when I send request to server and within 10 second if server not give any response than say any msg like "Try again". and before 10sec server give response then proceed fu开发者_如何学Gorther.

How's this possible? Is there used TimerTask or any method for Tomeout in Ksoap?


may be the following example will helpful for you:

String ht_params = ";ConnectionTimeout=10000"; // 10 seconds timeout
HttpTransport ht = new HttpTransport(this.SERVICE_URL + ht_params);

I'm from Russia, so my English is very bad.

0

精彩评论

暂无评论...
验证码 换一张
取 消