How to set timeout in Spring WebServiceTemplate

前端 未结 9 1050
一整个雨季
一整个雨季 2020-12-05 06:45

I am using org.springframework.ws.client.core.WebServiceTemplate for making Web Service calls. How can i configure timeout for the call.

9条回答
  •  独厮守ぢ
    2020-12-05 07:02

    For the CommonsHttpMessageSender, we can set the timeout in the following way:

    
      
      
    
    
    
        
    
    
    
    
        
            
        
    
    

    and ref the webServiceMessageSender as below:

    
           
    
    

提交回复
热议问题