KSoap Request Timeout?

后端 未结 3 1398
借酒劲吻你
借酒劲吻你 2021-01-28 23:31

friends,

i dont see request timeout in KSoap library

any one guide me what should i do? or from where to download latest version of it?

my code

3条回答
  •  情歌与酒
    2021-01-29 00:21

    STEP : 1 Get the ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar file. And place the jar file in app > libs folder.

    STEP : 2 compile files('libs/ksoap2-android-assembly-3.3.0-jar-with-dependencies.jar') place the line in build gradle > dependencies.

    STEP :3 static int networkTimeOut = 60 * 1000;

    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                    SoapEnvelope.VER11);
    envelope.dotNet = true;
    envelope.setOutputSoapObject(inserttransaction_request);
    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL, networkTimeOut);
    

提交回复
热议问题