Axis2 客戶端呼叫 設定超時時間

2021-07-31 05:00:56 字數 542 閱讀 6984

我用的是axis2-1.6.2版本。請看下面的客戶端**:

import org.apache.axis2.client.options;

import com.ctis.ta.service.impl.openaccountforunitservicestub;

import com.ctis.ta.service.impl.openaccountforunitservicestub.openandcheck;

import com.ctis.ta.service.impl.openaccountforunitservicestub.openandcheckresponse;

public class main

}如果上面設定不生效,有可能是你的版本舊了。還有一種方法可以試試:

axis2底層呼叫的是httpclient,它預設的嘗試連線時間是60s,建立連線後,等待接收資料的時間也是60s。上面的寫法是把等待接收資料時間延長。

Axis2 客戶端呼叫 設定超時時間

我用的是axis2 1.6.2版本。請看下面的客戶端 import org.apache.axis2.client.options import com.ctis.ta.service.impl.openaccountforunitservicestub import com.ctis.ta.ser...

Axis2 客戶端呼叫 設定超時時間

我用的是axis2 1.6.2版本。請看下面的客戶端 import org.apache.axis2.client.options import com.ctis.ta.service.impl.openaccountforunitservicestub import com.ctis.ta.ser...

Axis2 客戶端呼叫 設定超時時間

我用的是axis2 1.6.2版本。請看下面的客戶端 import org.apache.axis2.client.options import com.ctis.ta.service.impl.openaccountforunitservicestub import com.ctis.ta.ser...