-- Jake McGraw <[EMAIL PROTECTED]> wrote (on Wednesday, 09 July 2008, 12:19 PM -0400): > I believe a lot of folks have been bit by this bug: > > http://framework.zend.com/issues/browse/ZF-2978 > > The solution is posted here: > > http://framework.zend.com/issues/browse/ZF-2978?focusedCommentId=20489#action_20489 > > Doesn't work because $_lastResponse is a private member.... so try using this:
Is this still the case for the 1.5.2 release or current trunk? The indications on that bug are that it's fixed. > <?php > /** > * FIXME Use this class instead of Zend_XmlRpc_Client until bug is fixed > * http://framework.zend.com/issues/browse/ZF-2978 > */ > class BugFixXmlRpcClient extends Zend_XmlRpc_Client > { > public function call($method, $params = array()) > { > $request = new Zend_XmlRpc_Request($method, $params); > $this->doRequest($request); > if ($this->getLastResponse()->isFault()) { > $fault = $this->getLastResponse()->getFault(); > throw new > Zend_XmlRpc_Client_FaultException($fault->getMessage(), > $fault->getCode()); > } > return $this->getLastResponse()->getReturnValue(); > } > } > > > - jake > > > On Wed, Jul 9, 2008 at 11:52 AM, David Edwards > <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > We have been using the ZF XmlRpc classes to communicate with our payment > > gateway for a while now, and this has worked fine for us in the past (using > > 1.0.x). However, in testing a newer version of the ZF libraries (1.5.x), our > > XML RPC calls stopped working, giving out the error: > > > > java.lang.Exception: RPC handler object "system" not found and no default > > handler registered > > > > Having dug around a bit, it appears that Zend_XmlRpc_Client now includes > > some code to handle empty array parameters in the call() method (according > > to the comments in the code), and it's in this block that the client makes > > an additional method call (system.methodSignature), to which the gateway > > server replies with the above error. > > > > I'm a bit stuck as to what's happening here. Is it the case that the payment > > gateway is breaking the XMLRPC spec (i.e. there should be a system object on > > the other end)? Is there a way to get Zend_XmlRpc_Client not to perform > > these calls? Any advice on the matter is greatly appreciated. > > > > Many thanks, > > > > David Edwards > > -- > > View this message in context: > > http://www.nabble.com/XML-RPC-calls-no-longer-working-in-1.5%2C-possibly-due-to-server-introspection--tp18363733p18363733.html > > Sent from the Zend Framework mailing list archive at Nabble.com. > > > > > -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend Framework | http://framework.zend.com/
