List Info

Thread: Unable to get WebdavResource for https server




Unable to get WebdavResource for https server
country flaguser name
United States
2007-05-08 13:49:45
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(WebdavRe
source.java:3467)
	at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavRe
source.java:3423)
	at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavReso
urce.java:967)
	at
org.apache.webdav.lib.WebdavResource.setBasicProperties(Webd
avResource.java:912)
	at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavRes
ource.java:1894)
	at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResour
ce.java:1301)
	at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResour
ce.java:1320)HttpException
null

	at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResour
ce.java:1408)
	at
org.apache.webdav.lib.WebdavResource.<init>(WebdavReso
urce.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.co
m/Unable-to-get-WebdavResource-for-https-server-tf3711482.ht
ml#a10381620
Sent from the Jakarta Slide - User mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribejakarta.apache.org
For additional commands, e-mail: slide-user-helpjakarta.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )