简体   繁体   English

调用Web服务时出错

[英]Getting error while calling a web service

I'm trying to call a web service in Java I've made but I keep getting an error, here's my code: 我正在尝试使用我制作的Java调用Web服务,但我不断收到错误,这是我的代码:

System.out.print("web service call: ......");
try{
    String text = webFunction(text);
    System.out.println(" OK");
    System.out.println("web answer: "+texto);
}catch(Exception e){
    System.out.println(" Error\nError code: "+e);
}

And the error I get is: 我得到的错误是:

Error code: javax.xml.ws.soap.SOAPFaultException: Index: 29, Size: 29

If anyone could tell me what does the error means, or, maybe tell me how to solve it it'll be great. 如果有人可以告诉我该错误是什么意思,或者告诉我如何解决它,那就太好了。

Thanks 谢谢

It seems like a array/ list out of bound issue. 似乎数组/列表超出范围。 You are trying to retrieve item index 29 but the maximal index is 28. Check your while loops / for loops 您正在尝试检索项目索引29,但最大索引为28。检查while循环/ for循环

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM