6 Jul 08:17
Webdav Access with Jakarta Slide on Windows Sharepoint
Mosimann Matthias <Matthias.Mosimann <at> manor.ch>
2006-07-06 06:17:38 GMT
2006-07-06 06:17:38 GMT
Hi Everyone
I'm new to the list and new to jakarta slide and I have a problem. I
wrote a small and simple webdav client in Java with the jakarta slide
libraries. I want open a session to a Windows Sharepoint Workspace,
upload only one file and close the session. Here is my code (I deleted
the values, of course there is something in there):
[Code]
String hostUrl = "";
String userName = "";
String password = "";
String hostAdd = "";
String domain = "";
NTCredentials creds = new NTCredentials(userName, password, hostAdd,
domain);
HttpURL host = new HttpURL(hostUrl);
WebdavResource wdr = new WebdavResource(host, (NTCredentials)creds,
WebdavResource.DEFAULT, DepthSupport.DEPTH_1);
File fn = new File("remote-e.txt");
wdr.putMethod(fn);
wdr.close();
[/Code]
When I use the getMethod(); instead ... everything is working so only
putting the file is a problem and gives me this error:
[Error]
(Continue reading)
RSS Feed