I've been unable to successfully get a Map to bind as anything but 
AnyType2AnyType using Java 5 and generics. I suspect it could be done 
explicitly using the 1.4 method in the doc referenced below but haven't tried 
it yet.

If you are able to bind a Map using 1.5 /generics, please post  back to this 
list. I've asked for help re this a few weeks ago, as have others before then, 
but I haven't seen any confirmation that anyone's successfully done this.

----- Original Message ----
From: Andres Bernasconi <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, March 19, 2007 8:33:40 AM
Subject: Re: [xfire-user] Maps of collections with Aegis

yeap..it's explained in the XFire site...

http://xfire.codehaus.org/Mapping+collections

On 3/19/07, 
Joro Penchev <[EMAIL PROTECTED]> wrote:

Hi,

I want to have a Map<keytype, List<valuetype>> as return type of one of my 
web-service methods. Using default binding this binds to AnyType2AnyType map in 
the WSDL which results in "Type unknown" exceptions thrown by Xfire on invoking 
the method.


I've read the article about Aegis bindings here: 

http://maven.apache.org/doxia/doxia-example-book/aegis-binding.html#aegis_binding


and it has a section that describes proper mapping of maps as return types. 
However in all examples I managed to find on the net, the value type of the Map 
is a single type (custom or native) and I need a list of custom objects. I have 
thoroughly looked at the XSD for Aegis mappings here 
http://xfire.codehaus.org/schemas/1.0/mapping.xsd

but I cannot find a way to declare a map that has a collection as its value 
type.

Is this possible with Aegis? Can anyone help on this issue?

Thanks in advance :)

- Jorr











 
____________________________________________________________________________________
The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

Reply via email to