webservice 报错 Exception in thread "main" org.apache.axis2.AxisFault: Read timed out 20
publicstaticvoidmain(String[]args)throwsException{RPCServiceClientserviceClient=newRP...
public static void main(String[] args)throws Exception {
RPCServiceClient serviceClient = new RPCServiceClient();
Options options =serviceClient.getOptions();
// serviceClient.getOptions().setTimeOutInMilliSeconds(600000L);
EndpointReference targetEPR = new EndpointReference("http://218.244.176.55:25355/SOAP?wsdl");
options.setTo(targetEPR);
Object[] opAddEntryArgs ={"admin","admin"};
Class[] classes =new Class[]{String.class,String.class};
QName opAddEntry =new QName("http://ws.apache.org/axis2","DD_Login");
System.out.println(serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs,classes)[0]);
} 展开
RPCServiceClient serviceClient = new RPCServiceClient();
Options options =serviceClient.getOptions();
// serviceClient.getOptions().setTimeOutInMilliSeconds(600000L);
EndpointReference targetEPR = new EndpointReference("http://218.244.176.55:25355/SOAP?wsdl");
options.setTo(targetEPR);
Object[] opAddEntryArgs ={"admin","admin"};
Class[] classes =new Class[]{String.class,String.class};
QName opAddEntry =new QName("http://ws.apache.org/axis2","DD_Login");
System.out.println(serviceClient.invokeBlocking(opAddEntry, opAddEntryArgs,classes)[0]);
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询