You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Henry Lu <zh...@umich.edu> on 2008/04/07 22:00:16 UTC
passing Map object and return Map object
I had problems to pass/return a Map/HashMap object to/from services. On
the server side, it recieved an empty map object, on the client side, it
returned an empty Map object. I used TCPMON to look at the xml data,
there is no data passing at all.
Any Ideas?
-Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: passing Map object and return Map object
Posted by "Hoda, Nadeem [USA]" <ho...@bah.com>.
Henry,
Try using basic objects (strictly-typed POJOs) and object arrays, and
stay away from Java-specific types and generalized collection types.
For example, you could use an array of:
public class MyHashEntry {
String key;
MyObject value;
...
}
Also, generalized collections will either not work or cause interop
problems.
Thanks,
Nadeem
-----Original Message-----
From: Henry Lu [mailto:zhlu@umich.edu]
Sent: Tuesday, April 08, 2008 12:00 AM
To: axis-user@ws.apache.org
Subject: passing Map object and return Map object
I had problems to pass/return a Map/HashMap object to/from services. On
the server side, it recieved an empty map object, on the client side, it
returned an empty Map object. I used TCPMON to look at the xml data,
there is no data passing at all.
Any Ideas?
-Henry
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org