Hi, I managed to build a pingback feature with Zend_XmlRpc_Server and Client. Some stuff works fine.
- Sending pingbacks from one page of my project to another page of my project. - Sending pingbacks from one page of my project to a wordpress blog. But, whenever I sent a pingback from a wordpress blog to my project it does not work. This means the method of my Zend_XmlRpc_Server service class is not called (I check this with a log file). I tracked this down to the raw body that is sent by Zend_XmlRpc_Client and a wordpress installation. The Zend_XmlRpc_Client sends this body: ------------------------------------------ <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>pingback.ping</methodName> <params> <param><value><struct><member> <name>0</name> <value><string>http://source.url.com/foo</string></value> </member></struct></value></param> <param><value><struct><member> <name>0</name> <value><string>http://target.url.com/bar</string></value> </member></struct></value></param> </params> </methodCall> ------------------------------------------ This can be handled from Zend_XmlRpc_Server and my service class method is called properly. Now this is the raw body sent by workpress, which is much simpler. ------------------------------------------ <?xml version="1.0"?> <methodCall> <methodName>pingback.ping</methodName> <params> <param><value><string>http://source.url.com/foo</string></value></param> <param><value><string>http://target.url.com/bar</string></value></param> </params></methodCall> ------------------------------------------ Has anyone any idea why the wordpress call is not handled? It looks much clearer to me since it does not use a structure for the params. Thanks and best regards, Ralf -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
