Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Array In JAX-WS 2.  RSS feed

 
Jobin Mathew
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When i am making the client stubs using JAX-WS2 all the arrays are converted into Lists.

protected List<Details> item;
public List<Details> getItem()

Can I get the client stub with array itself? like the below code.

protected Details[] item;
public Details[] getItem()



Is there any options to do like this or it should be like this only in JAXWS?
 
R Srini
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. From what I have read, including this article about JAX-RPC versus JAX-WS, JAX-WS JAXB 2.0 uses generics. So it generates a List type, whereas JAX-RPC generated arrays []. You can always use list.toArray().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!