Welcome Guest, Not a member yet? Register   Sign In
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


Messages In This Thread
XML-RPC error with several transmitting data records from a table - by El Forum - 10-28-2008, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB