should keep it on the list for future folks who run into the same problem.

if you have perl available, try using the Frontier::Client package with this
script:

use Frontier::Client;
$contents = "<foo>bar</foo>";
$xmlRpcClient = Frontier::Client->new('url' => "$server:$port/Xindice",
'debug' => '1');
$xmlRpcClient->call('db.insertDocument', '/db', 'tmpfile', $contents);


this will try to insert a document named "tmpfile" with the $contents in the
collection at /db/foobar.  Make sure that /db exists.

it should print out (on stderr) a bunch of stuff about the message its
sending.

dave

-----Original Message-----
From: Pietro Michelucci [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 6:29 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Delphi


Dave:

Thanks for your quick reply.  It seems that regardless of how I compose my
message, I receive the same response as the one given below.  However, I
haven't tried too many permutations in my request.

I'm using Xindice 1.0 (and it prints birthday parenthetically next to the
version number in the console window).

Shall I continue replying to the group or to you directly?

Pietro

> -----Original Message-----
> From: Dave Viner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 9:19 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Delphi
>
>
> are you able to receive any xmlrpc responses that are valid?
> are you using 1.0 or the cvs version?
>
> dave
>
>
> -----Original Message-----
> From: Pietro Michelucci [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 04, 2003 6:09 PM
> To: [EMAIL PROTECTED]
> Subject: Delphi
>
>
> Hello.  I am interested in creating an open source Delphi (object pascal)
> API for Xindice using the XML-RPC protocol.  I have already begun work on
> this, but I need some guidance.
>
> Right now I am simply trying to use Delphi to communicate with
> Xindice using
> an existing Delphi API for XML-RPC.  I have had some success in that I am
> able to connect to port 4080.  The message I am sending is intended to
> return the document count for a collection.
>
> Here is the message I send:
>
> <methodCall><params><param><value><array><data><value><string>/db/
> root</stri
> ng></value>
> </data>
> </array></value>
> </param>
> </params>
> <RPCmethodName>db.getDocumentCount</RPCmethodName>
> </methodCall>
>
> And this is the reply that I receive:
>
> <methodResponse><fault></fault>
> <params><param></param>
> </params>
> </methodResponse>
>
> Somehow, I don't think my message was properly constructed. I'm not sure
> how to interpret the response, but it is not what I was expecting. I would
> be grateful for any suggestions on this.
>
> Thanks,
> Pietro Michelucci
>
>
>


Reply via email to