Welcome Guest, Not a member yet? Register   Sign In
Possible Xmlrpc library bug?
#1

(This post was last modified: 07-11-2015, 01:35 PM by geekita.)

I think that the method name is missing here

PHP Code:
// --> this is the original line // $op = 'POST '.$this->path.' HTTP/1.0'.$r
$op 'POST '.$this->path.'/'.$msg->method_name.' HTTP/1.0'.$r
            
.'Host: '.$this->server.$r
            
.'Content-Type: text/xml'.$r
            
.(isset($this->username$this->password) ? 'Authorization: Basic '.base64_encode($this->username.':'.$this->password).$r '')
            .
'User-Agent: '.$this->xmlrpcName.$r
            
.'Content-Length: '.strlen($msg->payload).$r.$r
            
.$msg->payload

from

PHP Code:
/**
     * Send payload
     *
     * @param    object    $msg
     * @return    object
     */
    
public function sendPayload($msg)
    { 

of Xmlrpc.php library
Reply
#2

Inside XML_RPC_Message, the createPayload method extracts the method name.
Reply
#3

Thanks, I've found the issue. The server controller MUST contain the index function.
Reply
#4

(07-11-2015, 11:04 PM)geekita Wrote: Thanks, I've found the issue. The server controller MUST contain the index function.

Agreed. The xmlrpc server does request dispatching in the index method.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB