axis2 webServerce 调用的超时设置

来源:互联网 发布:入门pcb设计软件 编辑:程序博客网 时间:2024/05/19 11:35

       

 

          Options options = serviceClient.getOptions();//172.40.1.97:9080
         //EndpointReference targetEPR = new EndpointReference("http://*******");

         //超时
         options.setTimeOutInMilliSeconds(1000*120);
        
         //释放资源
         options.setCallTransportCleanup(true);
        
        
         options.setTo(targetEPR);

原创粉丝点击