I assume, you also found the error in my script.  you should request
$url = 'http://localhost:8080/xindice-1.1b';
NOT
$url = 'http://localhost:8080/Xindice';

dave


-----Original Message-----
From: Dave Viner [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 21, 2002 10:17 AM
To: [email protected]
Subject: RE: Problems with war file - where is the db directory needed?


i suspect they are case sensitive, since the 'message' value is used to
identify the class name to execute. This is the 'run' method that is
actually executed:

   public static final String MESSAGE_PARAM = "message";

   public Hashtable run(Hashtable message) throws Exception {
      // The method determines what class we load to handle the message.
      RPCMessage handler = null;
      handler = (RPCMessage)
Class.forName("org.apache.xindice.server.rpc.messages." +
            message.get(MESSAGE_PARAM)).newInstance();

      return handler.execute(message);
   }

so... the 'message' value is appended to
'org.apache.xindice.server.rpc.messages.' . So I believe it is
case-sensitive.  org.apache.xindice.server.rpc.messages.listcollections is
not the same class as org.apache.xindice.server.rpc.messages.ListCollections
I think.

dave


-----Original Message-----
From: Dr. Klemens Waldh�r [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 21, 2002 7:26 AM
To: [email protected]
Subject: AW: Problems with war file - where is the db directory needed?


Thanks!

This helped (at least partially). I could get most functions working
again. The only one which are still resisting are Query, CreateIndexer
and RemoveIndexer.

Once I have found out why I will make my updated perl module xindice.pm
available again (which is using the Frontier::Client too).

BTW: Are the names case sensitive?

Klemens

-----Urspr�ngliche Nachricht-----
Von: Dave Viner [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 20. November 2002 08:03
An: [email protected]
Betreff: RE: Problems with war file - where is the db directory needed?


After getting 1.1 running locally, and splunking through a bunch of
code, I've hit upon a script that invokes the XML-RPC handlers properly
(or at least as far as I can tell).  I've attached the script (it uses
Frontier::Client, but you can get it from cpan or ppm). let me know if
this works properly for you.

dave

-----Original Message-----
From: Dave Viner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 19, 2002 10:18 AM
To: [email protected]
Subject: RE: Problems with war file - where is the db directory needed?


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






Reply via email to