Hi, I want to understand Zend_XmlRpc_Client. This is a given code:
------------------------------------------------------------------ $pingbackUrl = 'http://host.com/comments/index/pingback'; $sourceUrl = 'http://host.com/news/one-special-article'; $targetUrl = 'http://host.com/news/another-special-article'; $xmlrpcClient = new Zend_XmlRpc_Client($pingbackUrl); $xmlrpcResult = $xmlrpcClient->call( 'pingback.ping', array($sourceUrl, $targetUrl) ); Zend_Debug::dump($xmlrpcClient->getLastRequest()->__toString()); ------------------------------------------------------------------ The generated xml request looks like this: ------------------------------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>pingback.ping</methodName> <params> <param> <value><struct><member> <name>0</name> <value><string>http://host.com/news/one-special-article</string></value> </member></struct></value> </param> <param> <value><struct><member> <name>0</name> <value><string>http://host.com/news/another-special-article</string></value> </member></struct></value> </param> </params> </methodCall> ------------------------------------------------------------------ Why are the strings parameters wrapped within a <struct> element? What do I need to do, if the request should look like this? ------------------------------------------------------------------ <?xml version="1.0"?> <methodCall> <methodName>pingback.ping</methodName> <params> <param><value><string>http://host.com/news/one-special-article</string></value></param> <param><value><string>http://host.com/news/another-special-article</string></value></param> </params> </methodCall> ------------------------------------------------------------------ Has this anything to do with the method signatures? And if yes, how can I configure them? Should I extend Zend_XmlRpc_Client? Please advise. Thanks and best regards, Ralf -- Ralf Eggert Geschäftsführer Travello GmbH An der Eiche 15 25421 Pinneberg Geschäftsführer: Ralf Eggert Amtsgericht Pinneberg HRB 6112 PI Tel: 04101/8529401 Fax: 04101/8529402 E-Mail: [email protected] Web: http://www.travello.de -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
