Can you return an array from a JAX-WS @WebMethod?

Posted by LES2 on Stack Overflow See other posts from Stack Overflow or by LES2
Published on 2009-09-30T16:36:48Z Indexed on 2010/05/16 1:50 UTC
Read the original article Hit count: 268

Filed under:
|
|
|
|

I'm pretty sure you can, but in addition to answering the question in the title, could you also explain the pros, cons, caveats, if any, to doing so? I know that you can't return a List, Set, Collection, Map, or any interface, from a WebMethod (which is stupid, IMO, but I don't know what the design reasons were should I should probably withhold judgment).

Thanks for any advice.

-- LES

© Stack Overflow or respective owner

Related posts about jax-ws

Related posts about jaxb