Subject: | maybe a little bug with downloadDocument |
Date: | Fri, 2 Jul 2010 11:44:36 +0200 |
To: | bug-XML-ExistDB [...] rt.cpan.org |
From: | Bastian Entrup <Bastian.Entrup [...] germanistik.uni-giessen.de> |
Hi!
First of all, thumbs up, I'm working with the xml::exist-db for a few days now, and I really like all the options it gives me. But I've got a little Problem with the downloadDocument() method. I'm trying to download xml-files i want to parse with XML::Libxml. This is what i'm doing:
my $eXistDB = XML::eXistDB::RPC->new(destination => "http://$hostname:$port/exist/xmlrpc",
user => "$user", password => "$password",
repository => '/db',);
my $doc = $eXistDB->downloadDocument("/db/shakespeare/plays/hamlet.xml");
print $doc;
and for hamlet.xml the module returns: "No method matching arguments: java.lang.String, java.lang.String". First I thought it might be something wrong with the eXist installation, but I check it, it's ok (I tried 2 different ones).
A bit strange: if i try
my $doc = $eXistDB->downloadDocument("/db/shakespeare/plays/macbeth.xml");
it woks and returns the content of macbeth.xml.
Am I making a mistake? I tried a lot, but still could find a way to download the files, that why I thought there might be a Problem with the module. If not, if I'm only to stupid to work with it, I'm sorry to bother you!
Best regards,
Bastian