Parse XML-RPC Server Response - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Parse XML-RPC Server Response (/showthread.php?tid=43980) |
Parse XML-RPC Server Response - El Forum - 07-29-2011 [eluser]SOVEREIGN[/eluser] I've been testing the XML-RPC CodeIgniter class, it's pretty good, buy i don't have any idea of how the parse the response i get from the webservice server. I'm using the sample code given in the documentation to create server and client: Client: Code: // The Server With the above example, it shows the response received from the server, buy i would like to know how to store the response in a array or some variables. The XML-RPC client print this to the browser: Array ( [you_said] => Hi dude? [i_respond] => Hi there friend. ) How do i store that values in a variable? I tried like this: Code: $r = $this->xmlrpc->display_response(); But doesn't works. Is that possible? Sorry if it's a newbie question, but im new to this protocol. Parse XML-RPC Server Response - El Forum - 07-29-2011 [eluser]SOVEREIGN[/eluser] I already done it using a foreach loop: Code: $r = $this->xmlrpc->display_response(); It works fine, but if anyone knows another way, please tell it. Parse XML-RPC Server Response - El Forum - 07-30-2011 [eluser]SOVEREIGN[/eluser] Nobody knows an alternative to do this? Anyone? |