Is there a rationale behind the fact that _xmlrpc returns only the first parameter when it receive a non-faulty response?
I was trying to query bugzilla.mozilla.org via xmlrpc to set up a simple input filter and all I got was the first, useless parameter, while all the useful info were inside the second, sadly ignored one.
I checked with the XML-RPC specs and it doesn't look it's illegal to have more than one
(while only one
is allowed).

Comments

Pinolo@www.drupalitalia.org’s picture

Rephrasing the last sentence in the description because input filters ate 2 XML tags:
I checked with the XML-RPC specs and it doesn't look it's illegal to have more than one «param» (while only one «params» is allowed).

Addendum:
Surely, the _xmlrpc function knows about and handles multiple parameters, since it builds an array with them, but eventually returns only the first item.

jrchamp’s picture

Status: Active » Closed (works as designed)

From the spec:

The body of the response is a single XML structure, a <methodResponse>, which can contain a single <params> which contains a single <param> which contains a single <value>.