Forum Discussion
Jun 19, 2008
I specifically haven't answered this one because I have zero experience working with PHP and especially the SOAP interface so I didn't want to mislead you.
From your first response, you did get back a timestamp so are you sure there is nothing in the statistics array returned? Is it zero length? The MemberStatistics array returned contains multiple MemberStatistics structures for each requested pool member. In each MemberStatistic structure, there is a MemberStatisticEntry array (the statistics variable you are displaying). This is not a scalar but an array of statistics for each member and an embedded list of statistics.
Did you verify that the MemberStatistics[0].statistics array was indeed empty?
A SOAP trace would help out, is that something the php toolkit can do?
If it is indeed an empty array, then you are not correctly serializing the 2-d array for the members parameter in the get_statistics() method.
Oh, and if you could provide the actual code where you are making the method call? It's hard to tell what you are passing in.
I can provide you samples in perl, .Net, or PowerShell relatively easily if that will help.
-Joe