Welcome Guest, Not a member yet? Register   Sign In
How to develop webservice in CI ?
#4

[eluser]gtech[/eluser]
sorry, I did misunderstand you... I am writing a 'webservice' and have a controller that accepts xmlrpc and calls the appropriate models then replys back using xmlrpc, I use a private key mechanism to keep it all secure.

I use the codeigniters xmlrpc library, and the encryption library to pass keys around. don't know about using soap though.

I turn off DB_DEBUG in the config file and I catch all my database errors so I can reply back any errors in the xml rpc. I am in the process of writing a library for this and will post it up soon
Code:
$dbRet = $this->db->update($table, $data_array);
    if (!$dbRet) {
      $ret['ErrorMessage'] = $this->db->_error_message();
      $ret['ErrorNumber'] = $this->db->_error_number();
    } else {

I also document all my APIs using php doc.


Messages In This Thread
How to develop webservice in CI ? - by El Forum - 11-16-2007, 08:51 AM
How to develop webservice in CI ? - by El Forum - 11-16-2007, 10:48 AM
How to develop webservice in CI ? - by El Forum - 11-16-2007, 11:04 AM
How to develop webservice in CI ? - by El Forum - 11-16-2007, 11:21 AM
How to develop webservice in CI ? - by El Forum - 11-16-2007, 11:40 AM
How to develop webservice in CI ? - by El Forum - 11-16-2007, 08:23 PM
How to develop webservice in CI ? - by El Forum - 09-17-2008, 12:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB