Hi

after running in several erros when using relative urls I started to use absolute urls to identify the sources.

root = new WebdavResource(webdavRootUrl);
root.getMethod("http://localhost:8080/slide/files/config/projects_config.xml",targetFile);

this always worked (at least for me)

SVen

Maël Villat schrieb:
Hello!

I believe that getMethod needs an absolute path like: /slide/files/filename.txt. You should look at the server's log, it could help you.

----- Original Message ----- From: "Julien Chambert" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 19, 2006 3:33 PM
Subject: slide client


i'm a new bee in use of slide

i try to use slide client on a java application and don't manage to get
file.

here is my code:
    .....
    File temp = new File("temp.xml");
    root = new WebdavResource(webdavRootUrl);
    temp.CreateNewFile();
    System.out.println(webdavRootUrl);
Sytem.out.println("read :"+temp.canRead()+" write: "+temp.canWrite()); System.out.println(root.getMethod("config/projects_config.xml",temp));
    ....

it displays:
    http://localhost:8080/slide/files/
    read: true write: true
    false

I don't understand when I check with konqueror the file exists.....

Can someone explain me what i have missed???

thanks for your answer



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to