sinat_27669779
sinat_27669779
2015-04-27 07:35

调用服务端的webservice接口异常,axis2,求大神解答,,拜托,拜托,感谢~~~

  • webservice
  • 异常
  • axis2

异常信息如下: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()时就提示异常了。

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答

为你推荐