Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-10 Thread Matthew Weier O'Phinney
-- David Edwards <[EMAIL PROTECTED]> wrote
(on Thursday, 10 July 2008, 03:50 AM -0700):
> David Edwards wrote:
> > Matthew Weier O'Phinney-3 wrote:
> > > 
> > > -- 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.
> > > 
> > 
> > From VERSION.txt:
> > 
> > Zend Framework 1.5.2 (revision 9458)
> > 
> > I don't believe this is fixed.
> > 
> > --
> > Dave
> > 
> Sorry, it /is/ fixed, in r9307. I was just confused because the revision
> number for the latest 1.5.2 release was higher. I thought for a moment that
> someone had taken the fix out, or something. Has the fix been merged into
> the release branch?

Ah -- looks like I didn't merge to the release branch as I hadn't had
confirmation that it was fixed prior to that release. I'll do sometime
in the next few days (we will be doing a 1.5.3 release soon).

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/


Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-10 Thread David Edwards



David Edwards wrote:
> 
> 
> Matthew Weier O'Phinney-3 wrote:
>> 
>> -- 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.
>> 
> 
> From VERSION.txt:
> 
> Zend Framework 1.5.2 (revision 9458)
> 
> I don't believe this is fixed.
> 
> --
> Dave
> 
Sorry, it /is/ fixed, in r9307. I was just confused because the revision
number for the latest 1.5.2 release was higher. I thought for a moment that
someone had taken the fix out, or something. Has the fix been merged into
the release branch?

--
Dave
-- 
View this message in context: 
http://www.nabble.com/XML-RPC-calls-no-longer-working-in-1.5%2C-possibly-due-to-server-introspection--tp18363733p18380297.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-10 Thread David Edwards


Matthew Weier O'Phinney-3 wrote:
> 
> -- 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.
> 

>From VERSION.txt:

Zend Framework 1.5.2 (revision 9458)

I don't believe this is fixed.

--
Dave
-- 
View this message in context: 
http://www.nabble.com/XML-RPC-calls-no-longer-working-in-1.5%2C-possibly-due-to-server-introspection--tp18363733p18377619.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-09 Thread Robert Castley
Hi All,

Using 1.5.2 (just downloaded) the issue is still not fixed.

I am still getting in my XML-RPC Server log:


  system.methodSignature
  

  
   columbusom.Enterprise
  

  
 

Run the exact transaction using 1.5.0 I get:


  columbusom.Enterprise
  

  
localhost:IOP:8082
  


  
rwc
  

  


My comment on the issue tracker asks if this is going to be fixed for 1.5.3.

Testing against the Incutio server the result with 1.5.2 is still
problematic using the following example code.

$conn  = new
Zend_XmlRpc_Client('http://scripts.incutio.com/xmlrpc/simpleserver.php');

try {
$result = $conn->call('test.getTime');
echo $result, "\n\n";
} catch (Zend_XmlRpc_Exception $e) {
echo $e->getMessage() . "\n\n";
}
echo $conn->getLastRequest()->__toString();

The result is:

server error. requested method system.methodSignature does not exist.


system.methodSignaturetest.getTime

Using 1.5.0 gives you:

22:17:35


test.getTime

-Original Message-
From: Jake McGraw [mailto:[EMAIL PROTECTED] 
Sent: 09 July 2008 19:40
To: fw-general@lists.zend.com
Subject: Re: [fw-general] XML RPC calls no longer working in 1.5, possibly
due to server introspection?

> Is this still the case for the 1.5.2 release or current trunk? The 
> indications on that bug are that it's fixed.
>

Looking at 1.5.2, looks like this was fixed.

- jake


>
>> > /**
>> * 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-pos
>> > sibly-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/
>


This email has been scanned for all known viruses by the MessageLabs Email
Security Service and the Macro 4 plc internal virus protection system.




This email has been scanned for all known viruses by the MessageLabs Email 
Security Service and the Macro 4 plc internal virus protection system.


Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-09 Thread Jake McGraw
> Is this still the case for the 1.5.2 release or current trunk? The
> indications on that bug are that it's fixed.
>

Looking at 1.5.2, looks like this was fixed.

- jake


>
>> > /**
>> * 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/
>


Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-09 Thread Matthew Weier O'Phinney
-- 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.


>  /**
> * 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/


Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-09 Thread Jake McGraw
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:

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.
>
>


Re: [fw-general] XML RPC calls no longer working in 1.5, possibly due to server introspection?

2008-07-09 Thread Matthew Weier O'Phinney
-- David Edwards <[EMAIL PROTECTED]> wrote
(on Wednesday, 09 July 2008, 08:52 AM -0700):
> 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.

We added some code prior to 1.5.2 that should fix this situation --
basically, if we have an error calling the system.* methods, we skip the
check and just send the request as is. Please make sure you're using
1.5.2 or current trunk, and see if the issue persists.

You'll still see the errors on your server regarding the missing system
namespace, but the client should work.

-- 
Matthew Weier O'Phinney
Software Architect   | [EMAIL PROTECTED]
Zend Framework   | http://framework.zend.com/