ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiaobing liu" <xiaobi...@hotmail.com>
Subject SimpleXmlRpcClient doesn't work properly
Date Thu, 20 May 2004 15:00:48 GMT
<html><div style='background-color:'><DIV class=RTE>
<DIV class=RTE>
<DIV><FONT face=Arial size=2>HI:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I' ve downloaded the Version1.2.1 zip source,&nbsp;
imported it to </FONT><FONT face=Arial size=2>my project and rebuilded it.&nbsp;</FONT><FONT
face=Arial size=2> I&nbsp;used JSXmlRpcApplet, </FONT><FONT face=Arial size=2>XmlRpcApplet,
</FONT><FONT face=Arial size=2>SimpletXmlRpcClient&nbsp; and the classes needed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The SimpleXmlRpcClient doesn't work properly when
the server </FONT><FONT face=Arial size=2>sends back </FONT><FONT face=Arial
size=2>a struct(array/hashtable).&nbsp;I debuged and found the reason is that the v.value
</FONT><FONT face=Arial size=2>is&nbsp; null in the&nbsp; endElement()
</FONT><FONT face=Arial size=2>method .</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I changed the&nbsp; statement:</FONT><FONT
face=Arial size=2>&nbsp;ObjectParsed(v.value) in the SimpleXmlRpcClient</FONT><FONT
face=Arial size=2>to</FONT>.<FONT face=Arial size=2>endElement()&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2>to </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>if ( v.type == ARRAY)</FONT></DIV>
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; objectParsed( v.array
);</FONT></DIV>
<DIV><FONT face=Arial size=2>} else<FONT face=Arial size=2>&nbsp;if
( v.type == STRUCT )</FONT> 
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; objectParsed ( v.struct
);</FONT></DIV>
<DIV><FONT face=Arial size=2>} else 
<DIV><FONT face=Arial size=2>{</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; objectParsed ( v.value
);</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV>then it works.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#cc3366><STRONG>But it&nbsp; still&nbsp; does not&nbsp;
work properly when the array/struct is recursive!</STRONG></FONT></DIV>
<DIV><FONT color=#cc3366></FONT>&nbsp;</DIV>
<DIV>The deadline of my Project is coming ,Could you give me some&nbsp;suggestions
soon?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Xiaobing Liu</DIV></FONT></DIV></FONT></DIV></DIV></DIV></div><br
clear=all><hr>Add photos to your e-mail with <a href="http://g.msn.com/8HMBEN/2746??PS=47575">MSN
8.</a> Get 2 months FREE*.</html>

Mime
View raw message