Menu

#82 ex:nil not bound because ex namespace not included

closed
5
2012-10-12
2010-05-17
Anonymous
No

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";
        }

Discussion

  • Gaetano Giunta

    Gaetano Giunta - 2010-05-23

    good idea. But would it break communication with other libs that do not use namespaces?

     
  • Gaetano Giunta

    Gaetano Giunta - 2010-05-23

    fixed in svn rev. 74. Please test

     
  • SourceForge Robot

    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).

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB