簡體   English   中英

Web服務超時Java Web服務

[英]Webservice timeout java web service

我有一個Web服務存根。 我正在像這樣設置存根的超時時間。 存根。 getServiceClient()。getOptions()。setTimeOutInMilliSeconds(timeout * 1 * 1000);

但這是行不通的(即,即使在超時時間之后,連接仍然有效)。 你能告訴我為什么嗎? 提前致謝。 :)

我們為Web服務客戶端實施超時,如下所示

org.apache.axis2.client.Options options = stub._getServiceClient().getOptions();
options.setTimeOutInMilliSeconds(timeoutMillisLimit + 2500); 
stub._getServiceClient().setOptions(options);

獲取選項對象,設置值,然后將選項對象重新設置在存根上,

我很確定這是進入WS的請求的超時時間...即30秒鍾后放棄(如果您無法返回)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM