These days, I am thinkering with XmlRpc version 1.2-b1 and Java 1.1+ applets.

I've found everything is working quite right, except for returned arrays,
and structs (I've not really tested structures): arrays are always returned
with zero elements.

I've seen the same problem is present in the current MAIN cvs branch. The
following patch should fix it:


--- SimpleXmlRpcClient.java.orig        2004-01-19 14:59:06.000000000 +0100
+++ SimpleXmlRpcClient.java     2004-01-19 15:00:03.000000000 +0100
@@ -610,13 +610,15 @@
             this.type = type;
             if (type == ARRAY)
             {
-                value = new Vector();
+                //value = new Vector();
                 array = new Vector();
+                value = array;
             }
             if (type == STRUCT)
             {
-                value = new Hashtable();
+                //value = new Hashtable();
                 struct = new Hashtable();
+                value = struct;
             }
         }

Claudio

Reply via email to