File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes NoSuchElementException when listing ServiceBindings Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "NoSuchElementException when listing ServiceBindings" Watch "NoSuchElementException when listing ServiceBindings" New topic
Author

NoSuchElementException when listing ServiceBindings

Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
Hi Folks,


I'm trying to list out using JAXR the service bindings for a particular service by calling this code:



I then attempt to list through the collection and retrieve the bindings this way:



This line is what throws the NoSuchElementException. If I puty a breakpoint right before this line and examine the binds Collection, I in fact see an element in there, it's of the type ServiceBindingImpl, so the line above should work. Just for good measure I tried this as well:



No such luck with that either. Has anybody come across this error before? Thanks.


SCJP 1.4 SCJD 1.5
Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
Hi Folks,

False alarm, I was using an iterator from a previous loop, details, details... thx
 
 
subject: NoSuchElementException when listing ServiceBindings
 
Threads others viewed
What more jar files do I use to run the JAXR code ?
problem in publishing web service
JAX-WS Service invocation fails after service discovery with JAXR
How can I attach tModelInstanceDetails to bindingTemplates by JWSDP?
What more jar files do I use to run the JAXR code ?
MyEclipse, The Clear Choice