异常信息如下:Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: org.apache.axis2.databinding.ADBException: Unexpected subelement {接口命名空间地址}arg0
faultActor:
faultNode:
faultDetail:
调用代码:
java rpc方式调用:
serviceClient = new RPCServiceClient();
Options options = serviceClient.getOptions();
options.setTimeOutInMilliSeconds(600000L);
EndpointReference targetEPR = new EndpointReference(wsdlUrl);
options.setTo(targetEPR);
QName opQName = new QName(nameSpace, method);
Class[] classes = new Class[] {String.class};
String result = serviceClient.invokeBlocking(opQName, params, classes).toString();//wsdlUrl,nameSpace,method,params,opQName这些数据都是有的,可是invokeBlocking()时就提示异常了。