Re: xmlrpc from php - NoSuchMethodException
Oran G <[email protected]>
| Newsgroups | gmane.text.xml.xindice.user |
|---|---|
| Message-ID | <[email protected]> |
hi gwen,
the posted examle and the mentioned class use the xml-rpc extension form
php5, which i try to avoid becouse it is not enabled by default.
since it dit not work with xindice, i gave eXist a try which i can use
with the same sourceforge xml-rpc-library. It supports XQuery/XUpdate
across multiple collections and a unix like permission system and i am
very happy with that. maybe i will swich to xindice again later when it
provides the same functionality (hopefully) .
nevertheless <http://www.dict.cc/?s=nevertheless> i appreciate your
post, thax
Oran G
> 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
>
>