• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML-RPC error with several transmitting data records from a table

#1
[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.