设置axis2的超时时间和取消重复发送

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qingfengmuzhu1993/article/details/82787893
Options options = authenticationProviderServiceServiceStub._getServiceClient().getOptions();
            options.setTimeOutInMilliSeconds(1000);//设置超时时间-默认60秒
options.setProperty(HTTPConstants.SO_TIMEOUT, 1000);//设置超时时间-默认60秒
            options.setProperty(HttpMethodParams.RETRY_HANDLER,new DefaultHttpMethodRetryHandler(0,false));//取消重复请求
authenticationProviderServiceServiceStub._getServiceClient().setOptions(options);

猜你喜欢

转载自blog.csdn.net/qingfengmuzhu1993/article/details/82787893