http://wenku.baidu.com/view/5eb1aff79e314332396893c7.html
生成客户端java
C:\axis2\bin>wsdl2java.bat -uri http://localhost:8080/axis2/services/BenTest?wsdl
-o C:\输出目录 -p 输出包名
timeout
private static void setTimeOuts(Stub paramStub) {
if (paramStub == null)
return;
Integer localInteger1 = getSoTimeout();
Integer localInteger2 = getConnTimeout();
Options localOptions = paramStub._getServiceClient().getOptions();
if (localOptions == null)
return;
localOptions.setProperty(HTTPConstants.SO_TIMEOUT, localInteger1);
localOptions.setProperty(HTTPConstants.CONNECTION_TIMEOUT, localInteger2);
localOptions.setTimeOutInMilliSeconds(localInteger1.longValue());
}
axis2教程
猜你喜欢
转载自dmwdmc.iteye.com/blog/1879154
今日推荐
周排行