From: noreply@... Date: 2006-03-16T08:59:23+09:00 Subject: [ ruby-Bugs-3842 ] xmlrpc client and php xmlrpc servers Bugs item #3842, was opened at 2006-03-15 23:45 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3842&group_id=426 Category: Standard Library Group: None Status: Open Resolution: None Priority: 3 Submitted By: Radu Spineanu (arvias) Assigned to: Nobody (None) Summary: xmlrpc client and php xmlrpc servers Initial Comment: Hi When trying to send something through xmlrpc to a drupal server i used: server = XMLRPC::Client.new( "localhost", "/drupal/xmlrpc.php" ) blogger = server.proxy( "blogger" ) blogger.newPost( "", "story", "user", "pass", "content", "false"); However the last field (post) is sent as string instead of boolean. In the drupal code (include/xmlrpcs.inc) there is something like: foreach ($signature as $key => $type) { $arg = $args[$key]; switch ($type) { [...] case 'boolean': if ($arg !== false && $arg !== true) { $ok = false; [...] Changing that line to "false" && "true" works ok. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3842&group_id=426