Re: best practices for Map and List in webservices

2008-02-26 Thread Daniel Kulp
Lists should be completely usable with JAX-WS/JAXB (and Aegis as well) as long as you properly type the exact instance. Example: class MyBean { List myList; } and don't try things like: class MyBean { List myList; } of class MyBean{ List myList; } The last one CAN be made to wo

Re: best practices for Map and List in webservices

2008-02-25 Thread Benson Margulies
Maps are hard. JAXB barely support them, with a ton of snails, in 2.1. I would personally recommend specifying a vector or list of pairs instead. On Mon, Feb 25, 2008 at 6:24 PM, Daniel Lipofsky < [EMAIL PROTECTED]> wrote: > I have got some WebServices that basically take and return > Map and Lis

best practices for Map and List in webservices

2008-02-25 Thread Daniel Lipofsky
I have got some WebServices that basically take and return Map and List. I am wondering what is considered the best way to do this, especially for interoperability with both Java and .NET. I don't have to use the Java collections (although it sure is convenient). Previously we used WebMethods Gl