最近在搞Webservice,遇到
org.apache.axis2.AxisFault: Timeoutwaiting forconnection
atorg.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
atorg.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:203*/
表现:每次测试超过3次,就会提示超时;
解决方案:
Java客户端注意:每次调用完之后,
RPCServiceClient的对象serviceClient执行serviceCli ent.cleanupTransport();
C#客户端注意:sender参数执行sender.cleanupTransport();