Hello again,

 Try to turn off keep-alive connections and the Expect :100 Continue http
header from being sent by the your client. Details of how to do that should
be present on the Jakarta Commmons Http Client documentation (slide webdav
client is based on that project).

Hope this helps,
Miguel

-----Original Message-----
From: Mosimann Matthias [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 6 de Julho de 2006 10:02
To: Slide Users Mailing List
Subject: AW: Webdav Access with Jakarta Slide on Windows Sharepoint

Hi Miguel 


First of all thank you for your answer. What exactly I have to turn off? How
can I do that?

regards
Matthias 

-----Ursprüngliche Nachricht-----
Von: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 6. Juli 2006 10:31
An: 'Slide Users Mailing List'
Betreff: RE: Webdav Access with Jakarta Slide on Windows Sharepoint


 Hello,

 There is a known interoperability problem between Tomcat Server and dotnet
client, related with keep-alive problems and the HTTP header EXPECT : 100
CONTINUE. Maybe it's a vice-versa... just a tip: try to turn them off and
repeat the experience.

 Hope this helps,
 Miguel Figueiredo

-----Original Message-----
From: Mosimann Matthias [mailto:[EMAIL PROTECTED]
Sent: quinta-feira, 6 de Julho de 2006 7:18
To: slide-user@jakarta.apache.org
Subject: Webdav Access with Jakarta Slide on Windows Sharepoint

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]
org.apache.commons.httpclient.HttpException: Unbuffered entity enclosing
request can not be repeated.
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:436)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:2290)
at
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBa
se.java:2625)
at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java
:1061)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:6
43)
at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:4
97)
at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2792)
at
org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2762)
at ch.manor.SlideTest.main(SlideTest.java:45)
[/Error]
 
Can anyone help me out? I don't know how to debug this.

Many thanks in advance!
 
regards
Matthias


---------------------------------------------------------------------
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]


---------------------------------------------------------------------
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