org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.axis2.AxisFault: Mapping qname not fond for the package: com\junze\huiju\adapter\traffic\bean
其实之前就遇到过类似问题,因为WebService中的POJO对象最好放在相同的package下,否则就会出现上面的错误报告
public class TrafficPoiBean<E extends BaseItem> {
private POIS<E> pois;
private MapInfo mapinfo; //比如这里的MapInfo.java类就必须和TrafficPoiBean.java在一个package下,不然就有如上错误啦
public POIS<E> getPois() {
return pois;
}
public void setPois(POIS<E> pois) {
this.pois = pois;
}
public MapInfo getMapinfo() {
return mapinfo;
}
public void setMapinfo(MapInfo mapinfo) {
this.mapinfo = mapinfo;
}
}
http://www.blogjava.net/nokiaguy/archive/2009/01/21/252255.html