首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网络技术 > 网络基础 >

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

2012-09-20 
我遇到的org.apache.axis2.AxisFault: First Element must contain the local name, Envel关于org.apache.

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

热点排行