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?
posted 6 years ago
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().