Menu

#2 string implementation fault

open
nobody
None
5
2003-10-07
2003-10-07
Anonymous
No

(from www.xmlrpc.com/spec)

"If no type is indicated, the type is string."

This is something comxmlrpc seems to do not.

I've used xmlrpc++07 as server and it does not add the
tag <string> inside <value> when the payload is a string.

This should be correctly recognised by comxmlrpc, but
the XMLtovb function has no default - it returns nothing
on a payload of

<methodResponse>
<params>
<param>
<value>this is a string</value>
</param>
</params>
</methodResponse>

where

<methodResponse>
<params>
<param>
<value>
<string>this is a string</string>
</value>
</param>
</params>
</methodResponse>

returns "this is a string"

xmlrpc++07 remarks "optionally" concerning
the "<string>" tags, so I feel some controversy there

who's to fix?

Dirk Griffioen

d.griffioen@humaninference.com

Discussion


Log in to post a comment.