Closed (duplicate)
Project:
Services
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 May 2008 at 23:26 UTC
Updated:
15 Feb 2009 at 09:26 UTC
I'm trying to do a multiple requests xmlrpc with a single call.
This is the code:
$url = variable_get('lesson_client_URL', '');
$series = xmlrpc($url,'series.load', (int)$tid); //Returns an array of nodes ids (nid)
foreach ($series as $serie) {
$calls[] = array($url,'node.load', $serie['nid'], array());
}
$result = xmlrpc($url, $calls);
This is the error:
[faultCode] => -32601
[faultString] => Server error. Requested method system.multicall not specified.
I was wondering if anyone out there has a working example code.
Thanks.
Comments
Comment #1
greenskin commentedsubscribe
Comment #2
designerbrent commentedsubscribe
Comment #3
ainigma32 commentedTried running this in a block on 5.12 and 6.6 and it seems to works ok:
- Arie
Comment #4
greenskin commentedAhh, that's what we were doing wrong. The second param needs to be 'system.multicall', we were passing the array of calls as the second param. Thanks.
Comment #5
greenskin commentedI get the error 'Method system.multicall does not exist' when trying to make multicall using Drupal's xmlrpc.
Comment #6
greenskin commentedThis is an issue with the Services xmlrpc server module. Changing the Project to Services.
Comment #7
snelson commentedgreenSkin, Services uses Drupal's xmlrpc server. It just provides methods to Drupal xmlrpc through hook_xmlrpc. This is why you can access services methods through Drupal's /xmlrpc.php. So, I'm thinking this is an issue with Drupal's xmlrpc, but will refer to marcingy for more ...
Marc is this even possible with Drupal xmlrpc? I'm thinking not ... so Drupal xmlrpc issue?
Comment #8
snelson commentedThis is a duplicate of #255516: XMLRPC multiple requests.