I don't have the new 1.1 running locally yet, but I think that you just need
to drop the 'db.' prefix from your requests. Here are the relevant files (i
think):
org/apache/xindice/server/XindiceServlet.java (line 147)
org/apache/xindice/server/rpc/RPCMessageInterface.java
org/apache/xindice/server/rpc/messages/*.java
The XindiceServlet invokes:
xmlrpc.addHandler("$default", new RPCMessageInterface());
As per docs at http://xml.apache.org/xmlrpc/server.html , the $default means
that no 'handlerName' is required (like it was before with
'db.insertDocument').
So when you request InsertDocument, the XML-RPC server (apparently) will
invoke the RPCMessageInterface.run() method. That will construct a new
org.apache.xindice.server.rpc.messages.InsertDocument object. Then it will
invoke the execute() method on the newly constructed object.
The last piece is what the actual URL requested should be. I'm not 100%
sure on this... but a little experimentation should show the correct answer.
perhaps /Xindice/<path-to-collection> ? or /Xindice/db ? or /RPC2/Xindice ?
i'm not sure on this point....
hope this helps.
dave
-----Original Message-----
From: Dr. Klemens Waldh�r [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 4:05 AM
To: [email protected]
Subject: AW: AW: Problems with war file - where is the db directory
needed?
Hi,
Thanks!
anyone else outside there using the new xindice version with XML-RPC
successfully?
Klemens
-----Urspr�ngliche Nachricht-----
Von: Kurt Ward [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 19. November 2002 05:11
An: [email protected]
Betreff: Re: AW: Problems with war file - where is the db directory
needed?
The XML-RPC API in CVS (a.k.a 1.1b) has completely different method
signatures for the calls. The CVS tree in general is very different from
the Xindice 1.0 release: CORBA has been dropped, the database itself is
not compatible with 1.0, XMLObjects have been removed (for the time
being), etc. etc.. There really is not much if any documentation for the
CVS version, but we are working on it. You can browse the current CVS
source and obtain the new rpc methods, but they will probably change a
little until we get a new release put together. Hope this helps (a
little).
Kurt
----- Original Message -----
From: "Dr. Klemens Waldh�r" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, November 15, 2002 10:34 AM
Subject: AW: AW: Problems with war file - where is the db directory
needed?
Hi,
I tried now to use the url: http://localhost:5080/xindice/db for the rpc
calls.
Although this was not successful - in a way :-) - I got the following
response back:
---- request ----
<?xml version="1.0"?>
<methodCall>
<methodName>db.listCollections</methodName>
<params>
<param><value><string>/db</string></value></param>
</params>
</methodCall>
---- response ----
<?xml version="1.0"
encoding="UTF-8"?><methodResponse><fault><value><struct><member><name>fa
ultString</name><value>java.lang.NoSuchMethodException:
db.listCollections</value></member><member><name>faultCode</name><value>
<int>0</int></value></member></struct></value></fault></methodResponse>
This seems to indicate (???) that I "reached Xindice" but the method is
not supported. I am using the names (like db.listCollections) from the
Xindice 1.0 version. Maybe they have changed ???? Question is where can
one find the new names.
Klemens
-----Urspr�ngliche Nachricht-----
Von: Carsten Ziegert [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 15. November 2002 15:33
An: [email protected]
Betreff: Re: AW: Problems with war file - where is the db directory
needed?
Am Freitag, 15.11.02, um 15:27 Uhr (Europe/Berlin) schrieb Carsten
Ziegert:
>
> Am Freitag, 15.11.02, um 11:49 Uhr (Europe/Berlin) schrieb Dr. Klemens
> Waldh�r:
>
>> Maybe a silly question: If I use now xml-rpc for access, do I have to
>> use http://localhost:5080/xindice/ now for the URL ? As far as I
>> rememeber the old version of Xindice was running under 4040.
>>
>
> I run into the same problem. All of the following trials to get a
> database connection resulted in error 400:
Sorry - of course it's not the same problem but a similar one: how are
the URLs and the collection prefixes defined for the CVS version?
>
> col = DatabaseManager.getCollection("xmldb:xindice-embed:///db");
>
> col =
> DatabaseManager.getCollection("xmldb:xindice-embed://localhost:8090/
> db");
>
> col = DatabaseManager.getCollection("xmldb:xindice-embed://141.71.2.3:
> 8090/db");
>
> Thanks for any suggestions!
>
> Carsten
> --
> Carsten Ziegert
>
> Hannover Medical School, Dept. of Hematology and Oncology
> Carl-Neuberg-Stra�e 1, 30625 Hannover
>
> University of Applied Sciences, Faculty of Information Sciences
> Ricklinger Stadtweg 120, 30459 Hannover
>
> http://summit-bmt.fh-hannover.de
>
>
>
>
--
Carsten Ziegert
Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Stra�e 1, 30625 Hannover
University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover
http://summit-bmt.fh-hannover.de