什么是HttpTransportSE的默认时间?

时间:2013-02-02 19:41:29

标签: android

我使用http://code.google.com/p/ksoap2-android/库,我想知道 HttpTransportSE的默认时间是多少? 用

启动它时
HttpTransportSE aht = new HttpTransportSE(WebServiceURL);

2 个答案:

答案 0 :(得分:2)

对于记录:根据GitHub source file ServiceConnection (line34),类Transport中使用的默认超时 - 它是HttpTransport和HttpTransportSE的基类 - 是20秒。

答案 1 :(得分:1)

从代码的tips section开始,您可以通过向您调用的方法添加更多参数来设置自己的超时时间

 HttpsTransportSE transport = new HttpsTransportSE(host, port, file, timeout);

超时为int。