Welcome Guest, Not a member yet? Register   Sign In
formatting the multi dimensional request array for xml-rpc client in code igniter
#1

[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
#2

[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);
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB