读书人

小弟我遇到的org.apache.axis2.AxisFa

发布时间: 2012-09-20 09:36:50 作者: rapoo

我遇到的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’后缀。

读书人网 >网络基础

热点推荐