Hello Im facing a problem here when I'm trying to save the file through my java based application to the webdav folders. I have pasted the snippet of my code along with the exception.
Please let me know what exactly is required to do here in order to save to the webdav folders. The webresource folder status message - OK (2xx) but it throws an exception and does not write file to webdav folder. LIBRARIES USED: (reference: http://jakarta.apache.org/slide/clientjavadoc/index.html) import org.apache.webdav.lib.*; import org.apache.webdav.lib.methods.*; import org.apache.util.*; CODE: public void saveToDav(String fileURI) { WebdavResource webres=null; String url = "http://some.server.com:8080/"; try { URI file_uri = new URI(fileURI); File ff = new File(file_uri.getPath()); HttpURL httpURL = new HttpURL("http://some.server.com:8080/"); httpURL.setUserInfo("username","password"); webres = new WebdavResource(httpURL,"public/"); if(ff.exists()) { boolean done = webres.putMethod(ff); System.out.println("result : " + done); } } catch(Exception e) { System.out.println("Exception " + e.getMessage()); System.out.println("webresource status message : "+webres.getStatusMessage()); e.printStackTrace(System.out); } } EXCEPTION: Exception Unable to process request webresource status message : OK (200) org.apache.commons.httpclient.HttpException: Unable to process request at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:657) at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2283) at org.apache.webdav.lib.WebdavResource.putMethod(WebdavResource.java:2259) Regards Naushin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
