Hi Oran,
Try with:
function ListCollections($collection='/db')
{
$params = array ( "collection"=>$collection,
"message"=>"ListCollections");
$xml = xmlrpc_encode_request("run", $params);
$response = $this->send($xml);
return $response['result'];
}
Also, have a look at Jill Rhoads class. I am not working with PHP but it was
really useful to me:
http://marc.theaimsgroup.com/?l=xindice-users&m=106907623313241&w=2
2003-11-17 RE: PHP Xindice Classes and Xindice 1.1b1? xindice-u
Jill Rhoads
Gwen
From: Oran G <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [EMAIL PROTECTED], [email protected]
Subject: xmlrpc from php - NoSuchMethodException
Date: Fri, 10 Jun 2005 00:22:14 +0200
hello,
i am trying to access xindice 1.1b4 (tomcat 4.1) from php. therefore i
downloaded the xmlrpc.inc and class_xindice.php from sourceforge.
According to some users on the web it shold work but i allways get the
same error message for all methods i try. here a small examle from web
which doesnt work for me:
include("xmlrpc.inc");
$f = new xmlrpcmsg('db.listDocuments', array(new
xmlrpcval($collection, "string")));
$c = new xmlrpc_client("/xindice", "127.0.0.1", 8180);
$r = $c->send($f);
$v = $r->value();
The Result:
java.lang.NoSuchMethodException:
org.apache.xindice.server.rpc.RPCMessageInterface.db.listDocuments(java.lang.String)'
since this happens for all methods i tried, i think the problem coud be
with my xindice configuration but i dont know what else i could try.
any help will be appriciated, thax
oran g
_________________________________________________________________
Acepta el reto MSN Premium: Protecci�n para tus hijos en internet.
Desc�rgalo y pru�balo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil