2010年11月23日星期二

[fw-webservices] Re: XmlRpc string decode into struct problem

Sorry to re-open a old thread but I wanted to know if I could use the
MethodName as the index key for the return array?

<code>
$connection = new Zend_XmlRpc_Client('http://localhost/xmlrpc');
$client = $connection->getProxy();
$request = array(
array(
'methodName' => 'system.listMethods',
'params' => array()
),
array(
'methodName' => ' system.methodHelp',
'params' => array('md5Value')
),
array(
'methodName' => 'md5Value',
'params' => array(' system.listMethods')
);

$response = $client->system->multicall($request);
echo print_r($response,true);
</code>

Is returns something like this

<code>
Array
(
[0] => Array
(
[0] => system.listMethods
[1] => system.methodHelp
[2] => system.methodSignature
[3] => system.multicall
[4] => md5Value
)

[1] => 0cff048a9159b57d3568e06ee6d5b454
)
</code>

How (If possible) can I get it to return something like this

<code>
Array
(
[0] => Array
(
[0] => system.listMethods
[1] => system.methodHelp
[2] => system.methodSignature
[3] => system.multicall
[4] => md5Value
)

[md5Value] => 0cff048a9159b57d3568e06ee6d5b454
)
</code>

With the MethodName as the array index
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/XmlRpc-string-decode-into-struct-problem-tp675573p3056322.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: