code/control/KapostService.php
protected function generateErrorResponse(PhpXmlRpc\Server $server, PhpXmlRpc\Response $r) {
        $this->response->addHeader('Content-Type', $r->content_type);
        $this->response->addHeader('Vary', 'Accept-Charset');
        
        $payload='<?xml version="1.0"?>';
        
        if(empty($r->payload)) {
            $r->serialize();
        }
        
        $payload=$payload.$r->payload;
        
        return $payload;
    }
protected function generateErrorResponse(PhpXmlRpc\Server $server, PhpXmlRpc\Response $r) {
        $this->response->addHeader('Content-Type', $r->content_type);
        $this->response->addHeader('Vary', 'Accept-Charset');
        
        $payload='<?xml version="1.0"?>';
        
        if(empty($r->payload)) {
            $r->serialize();
        }
        
        $payload=$payload.$r->payload;
        
        return $payload;
    }
protected function generateErrorResponse ( PhpXmlRpc \ Server $ server , PhpXmlRpc \ Response $ r ) { $ this -> response -> addHeader ( 'Content-Type' , $ r -> content_type ) ; $ this -> response -> addHeader ( 'Vary' , 'Accept-Charset' ) ; $ payload = '<?xml version="1.0"?>' ; if ( empty ( $ r -> payload ) ) { $ r -> serialize ( ) ; } $ payload = $ payload . $ r -> payload ; return $ payload ; }
Takes the xmlrpc object and generates the response to be set back
@param PhpXmlRpc\Server $server XML-RPC Server instance
@param PhpXmlRpc\Response $r XML-RPC Response object to relay to client
@return string Response to be sent to the client
Takes the xmlrpc object and generates the response to be set back