[eluser]Jilani Jidni[/eluser]
[quote author="cmgmyr" date="1219823748"]Hello,
I'm trying to connect to a web service and I'm running into some problems. Here is what I have so far:
Code:
$this->load->library('xmlrpc');
$this->xmlrpc->set_debug(TRUE);
$this->xmlrpc->server('URL_OF_SERVICE', 80);
$this->xmlrpc->method('METHOD_OF_SERVICE');
$request = array(
array(
array('token' => 'ABC123'),
'struct'
),
array(
array('id_number' => '123'),
'struct'
)
);
$this->xmlrpc->request($request);
if (!$this->xmlrpc->send_request()){
echo $this->xmlrpc->display_error();
}else{
echo 'It worked!';
}
I'm getting:
Code:
Did not receive a '200 OK' response from remote server. (HTTP/1.1 500 Internal Server Error)
as the error code.
1. What am I doing wrong?
2. How can I see the full request that I'm sending to the server to make sure it looks ok?
Thanks in advance,
-Chris[/quote]
May be you are trying to call https url. please try to call a http url.