Menu

#1 Request to permit XML responses other than methodResponse

open
nobody
None
5
2008-02-27
2008-02-27
No

I request that lines 1833-1834 be replaced to permit responses that contain XML other than <methodResponse>. I often find that the XML-DOM document available at this point is exactly what I need. For example, when making an AJAX query, I typically want to pass an XML-DOM document through an XSL transformation. Here is the modification I would request:

==== Before: ====

default: //nothing useful returned by parseXML.
throw 'missing top level xmlrpc element';

==== After: ====

default: //perhaps the XML document might be useful
var r = new xmlrpcresp(obj, 0, '', return_type);
if (this.debug)
{
xmlrpc_debug_log('<PRE>---PARSED---');
xmlrpc_debug_log(htmlentities(var_export(obj)));
xmlrpc_debug_log('\n---END---</PRE>');
}
r.hdrs = _xh['headers'];
r._cookies = _xh['cookies'];
r.raw_data = raw_data;
return r;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.