users@glassfish.java.net

jaxb missing setter method for arrays

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 31 Jan 2007 10:56:30 -0500

Hi,


In my web service, one of the methods takes an object as a parameter.
In the object there is an array of some other type of object. There is
a public getter/setter for this array.


The web service client (generated by jaxb) shows me a getter method for
the array, but no setter method.


I found the following comment at this URL :
http://www.mail-archive.com/user@xfire.codehaus.org/msg01545.html

> it's missing a setter on any unbounded
> schema elements, so no clients can set those fields in their requests.

Is this a limitation of jaxb? Is there a workaround?


I'm using Sun Java System Application Server 9.0 Update 1, JDK 1.6, and
NetBeans 5.5 on Windows XP Pro.


Thanks,
Ryan