I am trying to connect to IIS server which is setup to run on SSL, I am able
to connect the https url through the web browser, but when i try to get the
WebdavResource it fails after some time with HttpException null

                HttpsURL hrl = new HttpsURL("https://IIS25/Directory";);
                hrl.setUserinfo("user", "pass");
                WebdavResource wdr = new WebdavResource(hrl,true);
                String filename = "C:/Directory/Readme.txt";
                File fn = new File(filename);
                String path = wdr.getPath() + "/" + filename;          
                boolean rslt = wdr.putMethod(path,fn);  
                wdr.close();



Exception trace :

org.apache.commons.httpclient.HttpException
        at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3467)
        at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3423)
        at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967)
        at
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912)
        at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1894)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1301)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1320)HttpException
null

        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1408)
        at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:302)


It fails on line 3 where it is unable to get WebdavResource instance.

Any idea or suggestions , or something i need to do to run this code.

thanks,

Sudhan
-- 
View this message in context: 
http://www.nabble.com/Unable-to-get-WebdavResource-for-https-server-tf3711482.html#a10381620
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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

Reply via email to