I am building a java webservice which receive a LinkedHashMap
as argument. The LinkedHashMap
collection has some elements inserted in the client side, but I received it empty in the webservice.
Asked
Active
Viewed 238 times
0

Ajay George
- 11,759
- 1
- 40
- 48

Yassine MaaTi
- 1
- 1
1 Answers
1
Avoid returning collections directly. Instead of returning a
List<X>
, return a JavaBean that has aList<X>
in it. This will give you more detailed control over the marshalling anyway.
Producing a Web Service with JAX-WS and JAXB
See also:

Community
- 1
- 1

Paul Vargas
- 41,222
- 15
- 102
- 148