aspose file tools
The moose likes Web Services and the fly likes returning a 2-d array Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "returning a 2-d array" Watch "returning a 2-d array" New topic
Author

returning a 2-d array

archit thakur
Greenhorn

Joined: Jul 10, 2010
Posts: 24
can a 2-d array be returned from the method of end point implementation class generated using annotations?
if not, what is the solution to the problem?
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
With the following method in the endpoint implementation class:


If we then look at the generated WSDL, there is the following type declared for the reply of the above method:


The stringArray type is type predefined by JAXB that appears in a separate XML schema:

Thus the data returned from the method will be a list of stringArray-s.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
archit thakur
Greenhorn

Joined: Jul 10, 2010
Posts: 24
thank you, but is it also applicable if i have to return any other datatype array
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: returning a 2-d array
 
Similar Threads
Array assignment
arrays declarations
doubt in arrays...
array -please explain the output
Array Concepts