HI:
 
I' ve downloaded the Version1.2.1 zip source,  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 the reason is that the v.value is  null in the  endElement() method .
 
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!
 
The deadline of my Project is coming ,Could you give me some suggestions soon?
 
Thanks in advance!
 
Xiaobing Liu


Add photos to your e-mail with MSN 8. Get 2 months FREE*.

Reply via email to