[eluser]dali01[/eluser]
Hi,
I'm trying got get a CI-based XMLRPC client to work with a server written in Gambas2 (VB-like language for linux).
The server works just fine with a client written in php using XML-RPC module.
I can't see anything wrong in the response from the server.
Any ideas?
Simple client CI controller:
Code:
class Device extends Controller {
function Device()
{
parent::Controller();
}
function index()
{
$this->xmlrpc->set_debug(TRUE);
$this->xmlrpc->server("127.0.0.1", 9009);
$this->xmlrpc->method('system.program_version');
$request = array();
$this->xmlrpc->request($request);
if ( ! $this->xmlrpc->send_request())
{
print_r($this->xmlrpc->display_error());
}
else
{
$response = $this->xmlrpc->display_response();
var_dump($response);
}
}
}
Debug output:
Code:
---DATA---
HTTP/1.1 200 OK
Connection: close
Content-Length: 151
Content-Type: text/xml
Server: Gambas RPC Server
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<string>0.1.178</string>
</value>
</param>
</params>
</methodResponse>
---END DATA---
The XML data receieved was either invalid or not in the correct form for XML-RPC. Turn on debugging to examine the XML data further.