读取方法是用的myeclipse的插件生成Java代码;
调用方法如下:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "getShipInfo")
public class GetShipInfo {
public static void main(String[] agrs){
ShipInfoService service = new ShipInfoService();
ShipInfoServiceSoap soap = service.getShipInfoServiceSoap();
System.out.println(soap.getShipInfo());
}
}
打印出来的数据如下:
感觉像是前面的数据被后面的数据覆盖了,每次都只能读出最后几十条船的数据,总共应该有上万条船,想请教一下有没有什么办法能把数据读全。
或者说webservice有没有可能进行分段读取数据(我已经把MyEclipse打印行数设置到一百万了,能比以前读到更多的数据,但还是不全,这已经是打印上限了)