关于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’后缀。
我遇到的org.apache.axis2.AxisFault: First Element must contain the local name, Envel
最新推荐文章于 2021-08-17 14:59:57 发布