ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xiaobing liu" <xiaobi...@hotmail.com>
Subject Is it a bug in the XmlRpcSupport.class(inner class of SimpletXmlRpcClient.class)
Date Fri, 21 May 2004 14:22:51 GMT
<html><div style='background-color:'><DIV class=RTE>
<DIV>
<DIV class=RTE>HI:<BR>&nbsp;<BR>I' ve downloaded the <A target=_blank
href="http://65.54.184.250/cgi-bin/linkrd?_lang=EN&amp;lah=850732ab06e34effbe9864c88b5694ce&amp;lat=1085147985&amp;hm___action=http%3a%2f%2fapache%2esunsite%2eualberta%2eca%2fws%2fxmlrpc%2fv1%2e2%2db1%2fxmlrpc%2d1%2e2%2db1%2dsrc%2ezip"><FONT
color=#000099 size=2>xmlrpc-1.2-b1-src.zip</FONT></A>&nbsp;,&nbsp;
imported it to my project and rebuilded it.&nbsp; I used JSXmlRpcApplet, XmlRpcApplet,
SimpletXmlRpcClient&nbsp; and the classes needed.<BR>&nbsp;<BR>The SimpleXmlRpcClient
doesn't work properly when the server sends back a struct(array/hashtable). I debuged and
found :</DIV>
<DIV class=RTE>1.The response xml ByteStream is right.</DIV>
<DIV class=RTE>2.The John Wilson's<A target=_blank href="http://65.54.184.250/cgi-bin/linkrd?_lang=EN&amp;lah=6ea082eb098104cfd23d9552e31e325f&amp;lat=1085147985&amp;hm___action=http%3a%2f%2fwww%2ewilson%2eco%2euk%2fxml%2fminml%2ehtm"><FONT
color=#000099 size=2>MinML</FONT></A> parser works nice without using&nbsp;
XmlRpcSupport.class as&nbsp; MinML 's DocumentHandler </DIV>
<DIV class=RTE>&nbsp;&nbsp;&nbsp; line <A name=202 href="http://ws.apache.org/xmlrpc/xref/org/apache/xmlrpc/applet/SimpleXmlRpcClient.html#202">202</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
parser.setDocumentHandler(<STRONG>this</STRONG>);<BR><FONT color=#3300ff><STRONG>3.
But the v.value is&nbsp; null in the&nbsp; endElement() method </STRONG></FONT></DIV>
<DIV class=RTE><FONT color=#3300ff><STRONG>&nbsp;&nbsp; line 437
</STRONG><FONT color=#000000>objectParsed(v.value);<BR></FONT><BR></FONT>&nbsp;<BR>I
changed the&nbsp; statement: ObjectParsed(v.value) in the SimpleXmlRpcClientto.endElement()
<BR>to <BR>&nbsp;<BR>if ( v.type == ARRAY)<BR>{<BR>&nbsp;&nbsp;&nbsp;
objectParsed( v.array );<BR>} else if ( v.type == STRUCT ) <BR>{<BR>&nbsp;&nbsp;&nbsp;
objectParsed ( v.struct );<BR>} else <BR>{<BR>&nbsp;&nbsp;&nbsp;
objectParsed ( v.value );<BR>}<BR>then it works.<BR>&nbsp;<BR><STRONG><FONT
color=#3300ff>But it&nbsp; still&nbsp; does not&nbsp; work properly when the
array/struct is recursive !</FONT><BR>&nbsp;<BR></STRONG>I'm not&nbsp;
sure if &nbsp;it's &nbsp;a bug.&nbsp;&nbsp; Could you give me some suggestions
about it?</DIV>
<DIV class=RTE>&nbsp;</DIV>
<DIV class=RTE><BR>Thanks in advance!<BR>&nbsp;<BR>Xiaobing Liu<BR></DIV></DIV></DIV></div><br
clear=all><hr>MSN 8 helps <a href="http://g.msn.com/8HMBEN/2743??PS=47575">ELIMINATE
E-MAIL VIRUSES. </a> Get 2 months FREE*.</html>

Mime
View raw message