CodeIgniter Forums
formatting the multi dimensional request array for xml-rpc client in code igniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: formatting the multi dimensional request array for xml-rpc client in code igniter (/showthread.php?tid=4236)



formatting the multi dimensional request array for xml-rpc client in code igniter - El Forum - 11-14-2007

[eluser]Unknown[/eluser]
Hello friends,
I am using the code igniter framework. I am using the xml-rpc library provided by code igniter. I want to format the requst array for xml-rpc client, whose each element itself is an array. can somebody help me how it can be done.

Thanks in advance.

Manish


formatting the multi dimensional request array for xml-rpc client in code igniter - El Forum - 11-14-2007

[eluser]gtech[/eluser]
Hi I did something similar in this thread, but it was formatting the XMLRPC response array (an array of associated arrays). It may be the same method for building the request array.

[url="http://ellislab.com/forums/viewthread/64320/"](click here for thread 64320)[/url]

Code:
..
         $response = array (
           array(
             'res1' => array(array('Name'=>'a','Name2'=>'a'),'struct'),
             'res2' => array(array('Name'=>'b','Name2'=>'b'),'struct'),
           ),
           'struct'
         );
                      
         return $this->xmlrpc->send_response($response);



formatting the multi dimensional request array for xml-rpc client in code igniter - El Forum - 04-02-2008

[eluser]omed habib[/eluser]
You did ever figure this out? It seems like the helper doesn't like associative arrays being sent. Everytime I try to send an associative array (as opposed to a numerically indexed array), the code breaks.