logo       

Re: xmlrpc from php - NoSuchMethodException: msg#00016

Subject: Re: xmlrpc from php - NoSuchMethodException
Oran G wrote:
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

Gwen correctly suggested below to use 'run' method. RPCMessageInterface class does not have 'db.listDocuments'; moreover, 'db.listDocuments' is not a valid Java method name anyway. You can easily see this from the message you got:

java.lang.NoSuchMethodException:
org.apache.xindice.server.rpc.RPCMessageInterface.db.listDocuments(java.lang.String)'

You should have used 'run' method, with 'collection' and 'message' parameters, as shown below.

Vadim


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 <jihad@xxxxxxxxxxxxxxxx>
Reply-To: xindice-users@xxxxxxxxxxxxxx
To: xindice-users-faq@xxxxxxxxxxxxxx,  xindice-users@xxxxxxxxxxxxxx
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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
audio.irate.dev...    yellowdog.gener...    ietf.ips/2002-0...    xfree86.fonts/2...    busybox/2003-07...    emacs.jdee/2004...    linux.mandrake....    hardware.microc...    user-groups.lin...    science.analysi...    version-control...    db.filemaker.de...    cluster.openmos...    mail.eyebrowse....    text.xml.xerces...    kde.devel.kwrit...    finance.moneyda...    gcc.regression/...    network.routing...    os.freebsd.deve...    recreation.radi...    qnx.openqnx.dev...    python.xml/2002...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe