downmovies 发表于 2017-1-13 08:37:31

我遇到的org.apache.axis2.AxisFault: First Element must contain the local name, Envel

  关于org.apache.axis2.AxisFault: First Element must contain the local name, Envelope , but found definitions异常。我这里遇到的造成错误的原因是:
  IWebServiceForMSPStub stub = new IWebServiceForMSPStub("http://local/axis/services/IWebServiceForMSP?wsdl");
ReqSearchCustomInfo request = new ReqSearchCustomInfo();
request.setSearchCID("gd");
System.out.println(stub.reqSearchCustomInfo("gd----",null));
  对于xfire与axis2调用传入的wsdl的路径问题,要去掉‘?wsdl’后缀.
  你可以参照axis2生成的代码,它调用的wsdl路径是没有‘?wsdl’后缀。
页: [1]
查看完整版本: 我遇到的org.apache.axis2.AxisFault: First Element must contain the local name, Envel