(1)  The ArrayList value is serialized as a soap array which is then 
deserialized on the client side as an object array.  There is currently no 
way to change this other than for you to provide a custom MapDeserializer, 
which does the normal deserialization and then converts the values into 
ArrayLists.  Note that the org.apache.axis.utils.JavaUtils.convert(..) 
method is a useful way to convert an object array into an ArrayList.

(3) Same as above.

The rationale is that JSR 101 indicates that soap arrays should be 
deserialized into object arrays. 

Hope this helps!
Rich 'Shirley' Scheuerle
IBM WebSphere & Axis Web Services Development
512-838-5115  (IBM TL 678-5115)




"Michael K. Dean" <[EMAIL PROTECTED]>
06/14/2002 10:52 AM
Please respond to axis-dev

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        ArrayLists inside of Maps or other ArrayLIsts

 


1.) We are trying to send a HashMap that contains a UID as a Key and an
ArrayList  as the Value.  But when we deserilize it the client calling 
code
gets a HashMap of object arrays.  Is there a known fix for this???

2.) Does the new version of Axis support HashSet? If not does anyone have
any sudgestions on the best way to support it. (Write my own ser,deser?)

3.) By the way the same behavior as number 1.) seems to be happning with 
an
ArrayList of ArrayList.  You get the outer structure (arraylist/hashmap)
but the inner structure is an object array.


Thanks,

Michael





Reply via email to