• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Associative array as request-data in XML-RPC request

#1
[eluser]hlz[/eluser]
It has been adressed before but i can't find a solid answer or a good solution. I want to post code below to a rpc-server:
Code:
$request = array(
    
    array(
                
        'userid'    => array('99','string'),
        'url'       => array('http://yoursite.com','string'),
        'email'     => array('[email protected]','string'),
        'lastname'  => array('Smith','string'),
        'firstname' => array('John','string')
    ),
    
    'struct'
);

This doesn't work as a request. It does however work when the same array is set as a server-response. Could anyone tell me why a struct or array type cannot be used as request data?

Edit: my question actually is: how does one pass key-value pairs to a xml-rpc-server if code above cannot be used?


Messages In This Thread
Associative array as request-data in XML-RPC request - by El Forum - 06-10-2008, 05:31 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 02:31 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 07:07 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 07:25 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 07:36 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 08:01 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 08:09 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 08:18 AM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 03:32 PM
Associative array as request-data in XML-RPC request - by El Forum - 06-11-2008, 04:55 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.