为什么调用webservices 返回的是list,取到的却是数组,而且数组只有list的大小,值都为null

_重剑无锋_ _重剑无锋_ 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
public class GetListImp implements InGetList {
private InGetList inGetList;
String serviceURL = "http://localhost:8080/WebServices/services/getList";
private static XFireProxyFactory serviceFactory = new XFireProxyFactory();
public GetListImp(){

}
public InGetList getInGetList() {
if(inGetList==null){
long begintime=System.currentTimeMillis();
Service serviceModel = new ObjectServiceFactory().create(InGetList.class);
try {
inGetList= (InGetList) serviceFactory.create(serviceModel, serviceURL);
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
long endtime=System.currentTimeMillis();

}
return inGetList;
}
public void setInGetList(InGetList inGetList) {
this.inGetList = inGetList;
}
public static void setServiceFactory(XFireProxyFactory serviceFactory) {
GetListImp.serviceFactory = serviceFactory;
}
public List getList( ) {
// TODO Auto-generated method stub
if(getInGetList()==null){
System.out.println("ddddddddddddddddd");
}
System.out.println("fffffff");
List list=getInGetList().getList();
return list;
}

}
这是我在客户端调用的方法
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
_重剑无锋_
Java EE 67,535 成员 225,843 内容