wsdl time out!
change system properties.
-Dsun.net.client.defaultConnectTimeout=XX0000;-Dsun.net.client.defaultReadTimeout=XX0000;
quot.http://publib.boulder.ibm.com/infocenter/javasdk/v1r4m2/index.jsp?topic=/com.ibm.java.doc.diagnostics.142j9/html/syspropparameters.html
分享到:
相关推荐
System.setProperty("sun.net.client.defaultConnectTimeout", "5000"); System.setProperty("sun.net.client.defaultReadTimeout", "5000"); try { URL newUrl = new URL(strUrl); HttpURLConnection...
props.setProperty("sun.net.client.defaultConnectTimeout", "5000"); // 设置连接超时,单位毫秒 props.setProperty("sun.net.client.defaultReadTimeout", "5000"); // 设置读取超时,单位毫秒 ``` 此外,考虑到...
System.setProperty("sun.net.client.defaultConnectTimeout", "20000"); System.setProperty("sun.net.client.defaultReadTimeout", "20000"); // 组装请求对象 SendSmsRequest request = new SendSmsRequest...
System.setProperty("sun.net.client.defaultConnectTimeout", "10000"); System.setProperty("sun.net.client.defaultReadTimeout", "10000"); // 初始化必要参数 final String product = "Dysmsapi"; final ...
System.setProperty("sun.net.client.defaultConnectTimeout", "5000"); System.setProperty("sun.net.client.defaultReadTimeout", "5000"); try { URL newUrl = new URL(strUrl); HttpURLConnection hConnect...