users@glassfish.java.net

Re: jaxb missing setter method for arrays

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Wed, 31 Jan 2007 11:02:59 -0500

Nevermind... stupid mistake. The objects exposed by the web service
have get/set methods for arrays, but on the web service client end it
uses a List. I have to use the getter method to get a reference to the
List, then I can .add on it :)


Thanks,
Ryan

Ryan de Laplante wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>