Perhaps (just perhaps) you are not treating the xml-rpc parameters in the
correct way.
If you are using xmlrpc_encode to build the xml-rpc parameter, remember to
define it as a variable of type xmlrpcval.
I.e.: suppose you want to send an array $foo_array to a function
example.foo. Do it this way:

  $xmlrpc_par = new xmlrpcval;
  $xmlrpc_par = xmlrpc_encode($foo_array);

  $f=new xmlrpcmsg('example.foo', $xmlrpc_par);

And when you read the response, what you obtain is again an xmlrpcval. So be
sure to read it in the proper way (if the result is not a scalar, you should
use xmlrpc_decode).
There is a useful article on the use of xmlrpc on www.phpbuilder.com, that
you probably have already read...

Fabio

----- Original Message -----
From: "Kevin Drennan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 02, 2001 6:27 PM


> I've got a xmlrpc client that I've recently added as a function to a
> script I've been working on but I keep getting the following error:
>
> Fatal error: Call to a member function on a non-object in
> /my/path/xmlrpc.inc on line 706
>
> Line 706: $r=new xmlrpcresp($v, $f->scalarval(), $fs->scalarval());
>
>
> I'm admittedly new to php but was wondering if this was related to
> the global variable issue that I've seen mentioned on the list.
> Perhaps there is something basic about included files and scope that
> I'm missing here.
>
> Any help or padding for the wall I've been banging my head against
> would be appreciated.
>
> Kevin
>
> --
> For information about how to subscribe and unsubscribe from this list
> visit http://xmlrpc.usefulinc.com/list.html
>


--
For information about how to subscribe and unsubscribe from this list
visit http://xmlrpc.usefulinc.com/list.html

Reply via email to