Hi

i guess that's more a jaxb question, you need to do a wrapper instead of
returning the list directly (the wrapper is just a class holding as an
attribute the list you want to return).


*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/8/16 Van Geertruy, Michael <michael.vangeert...@schoolspecialty.com>

> Could you provide an example of how to write a web-service that creates a
> list of objects to be sent in the response message? I was thinking that a
> modification to the webservice-holder might do the trick, but can't find
> any good examples of that implementation.
>
> Eg:
>
> <listOfThings>
>                 <thing>
>                                 <thingName>Name1</thingName>
>                                 <thingAtt1>Att1something</thingAtt1>
>                                 <someRandomStuff>stuff here for
> 1</someRandomStuff>
>                 </thing>
>                 <thing>
>                                 <thingName>Name2</thingName>
>                                 <thingAtt1>Att2something</thingAtt1>
>                                 <someRandomStuff>stuff here for
> 2</someRandomStuff>
>                 </thing>
>                 <thing>
>                                 <thingName>Name3</thingName>
>                                 <thingAtt1>Att3something</thingAtt1>
>                                 <someRandomStuff>stuff here for
> 3</someRandomStuff>
>                 </thing>
>                 <thing>
>                                 <thingName>Name4</thingName>
>                                 <thingAtt1>Att4something</thingAtt1>
>                                 <someRandomStuff>stuff here for
> 4</someRandomStuff>
>                 </thing>
> </listOfThings>
>
> Michael Van Geertruy, PMP, CSM
> BT - Middleware Team
> (o) 920-882-5175
> (cell) 920-843-8705
> School Specialty, Inc.
> Greenville, WI
>
> To the optimist, the glass is half full. To the pessimist, the
> glass is half empty. To the engineer, the glass is twice as big
> as it needs to be.
>
>

Reply via email to