ZF-10301: Zend_XmlRpc_Response drops namespace information while parsing response value
There is a bad XML handling in Zend_XmlRpc_Response->loadXml($response). After parsing response to SimpleXMLElement, XML-RPC value is extracted as a string on line 208:
$valueXml = $xml->params->param->value->asXML(); $value = Zend_XmlRpc_Value::getXmlRpcValue($valueXml, Zend_XmlRpc_Value::XML_STRING);
However this leads to dropping XML namespace prefix information from the root XML element. When the XML string is parsed again by Zend_XmlRpc_Value, SimpleXMLElement throws warning if there is any XML namespace prefix used.
To reproduce the issue, you can use reponse XML:
<?xml version="1.0" encoding="utf-8"?>
The issue can be fixed just by removing the additional XML->String->XML conversion (removing the '->asXML()' part).
I also checked trunk and the issue is there as well.