Welcome Guest, Not a member yet? Register   Sign In
XML-RPC Problems
#1

[eluser]cmgmyr[/eluser]
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


Messages In This Thread
XML-RPC Problems - by El Forum - 08-26-2008, 08:55 PM
XML-RPC Problems - by El Forum - 08-27-2008, 11:33 AM
XML-RPC Problems - by El Forum - 08-27-2008, 02:26 PM
XML-RPC Problems - by El Forum - 09-03-2008, 04:06 AM
XML-RPC Problems - by El Forum - 09-03-2008, 07:01 AM
XML-RPC Problems - by El Forum - 09-03-2008, 07:08 AM
XML-RPC Problems - by El Forum - 09-03-2008, 07:15 AM
XML-RPC Problems - by El Forum - 09-03-2008, 07:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB