HI:
 
I' ve downloaded the xmlrpc-1.2-b1-src.zip ,  imported it to my project and rebuilded it.  I used JSXmlRpcApplet, XmlRpcApplet, SimpletXmlRpcClient  and the classes needed.
 
The SimpleXmlRpcClient doesn't work properly when the server sends back a struct(array/hashtable). I debuged and found :
1.The response xml ByteStream is right.
2.The John Wilson'sMinML parser works nice without using  XmlRpcSupport.class as  MinML 's DocumentHandler
    line 202         parser.setDocumentHandler(this);
3. But the v.value is  null in the  endElement() method
   line 437 objectParsed(v.value);

 
I changed the  statement: ObjectParsed(v.value) in the SimpleXmlRpcClientto.endElement()
to
 
if ( v.type == ARRAY)
{
    objectParsed( v.array );
} else if ( v.type == STRUCT )
{
    objectParsed ( v.struct );
} else
{
    objectParsed ( v.value );
}
then it works.
 
But it  still  does not  work properly when the array/struct is recursive !
 
I'm not  sure if  it's  a bug.   Could you give me some suggestions about it?
 

Thanks in advance!
 
Xiaobing Liu


MSN 8 helps ELIMINATE E-MAIL VIRUSES. Get 2 months FREE*.

Reply via email to