ex:nil not bound because ex namespace not included
Brought to you by:
ggiunta
The ex namespace isn't included in the methodResponse tag so when $xmlrpc_null_apache_encoding is set true and the response is sent to a server than does namespace checking (for example, ws-xmlrpc), an exception "The prefix "ex" for element "ex:nil" is not bound."
To fix, just need to edit the function serialize() in xmlrpc.inc:
if ($GLOBALS['xmlrpc_null_apache_encoding']) {
$result = "<methodResponse xmlns:ex=\"http://ws.apache.org/xmlrpc/namespaces/extensions\">\n";
}
else {
$result = "<methodResponse>\n";
}
Anonymous
good idea. But would it break communication with other libs that do not use namespaces?
fixed in svn rev. 74. Please test
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 90 days (the time period specified by
the administrator of this Tracker).