Just following up on an old thread...

FYI, I was finally able to get maps working with XFire using Java and generics, 
so it is possible. AnyType2AnyType worked just fine, the issue was with 
namespace conflicts between the service and the beans that effects map parsing. 
I posted a workaround here:

http://jira.codehaus.org/browse/XFIRE-842#action_92880

----- Original Message ----
From: "Bell, Douglas" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Monday, March 19, 2007 10:45:24 AM
Subject: RE: [xfire-user] Maps of collections with Aegis




 
 

 

 

 


<!--
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times 
New Roman";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;text-decoration:underline;}
p
        {margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:"Times 
New Roman";}
span.EmailStyle19
        {font-family:Arial;color:navy;}
 _filtered {margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {}
-->






I to have posted several times regarding
this issue; as far as I can tell either the instructions on the site are
incorrect or the functionality is broken. 
 

  
 

Can anyone confirm that they were successfully
able to get Maps to bind to something other then AnyType2AnyType (if so how did
you do it)?  Should I open an issue in JIRA? 
 

  
 

- Doug
 










From: Bill Graham
[mailto:[EMAIL PROTECTED] 

Sent: Monday, March 19, 2007 10:26
AM

To: [EMAIL PROTECTED]

Subject: Re: [xfire-user] Maps of
collections with Aegis
 




  
 





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
 







  
 




  
 







  
 








Looking for earth-friendly autos? 

Browse
Top Cars by "Green Rating" at Yahoo! Autos'
 Green Center .

 









__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to