CodeIgniter Forums
XML-RPC error with several transmitting data records from a table - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: XML-RPC error with several transmitting data records from a table (/showthread.php?tid=12699)



XML-RPC error with several transmitting data records from a table - El Forum - 10-28-2008

[eluser]Unknown[/eluser]
Cheers guys, I have a small problem which I hope can help me, I am working with the class XML-RPC, is that I have to bring several rows from a table but only brings me the first record, however, read about the class easyxmlrpc (http: / / ellislab.com/forums/viewthread/79587 /) but said that the document is poorly trained.

controllers/client:
function send(){
$url_servidor = 'http://192.168.99.105/xml-rpc/index.php/xmlrpc_server';

$this->load->library('xmlrpc');
//$this->load->model('XmlRpc_model');

$this->xmlrpc->server($url_servidor, 80);
$this->xmlrpc->method('busca');
$this->xmlrpc->set_debug(TRUE);

$peticion = array();
$this->xmlrpc->request($peticion);

if ( ! $this->xmlrpc->send_request())
{
echo $this->xmlrpc->display_error();
}
else
{

print_r($this->xmlrpc->display_response());

}
controllers/server:

function get_in($peticion)
{

$parametros = $peticion->output_parameters();
//$buscar = $parametros['0'];
$info = $this->XmlRpc_model->search();
$respuesta = $this->easyxmlrpc->convert_response($info->result_array());
//$query = $x->row_array();
//$respuesta = ($query,'struct');

return $this->xmlrpc->send_response($respuesta);

}

If anyone knows any way of obtaining such records, you be thankful


XML-RPC error with several transmitting data records from a table - El Forum - 12-02-2008

[eluser]skattabrain[/eluser]
you ever figure this out Nomada?