We have requirement to download files from webDAV using java program. I heard using java API - sardine we can do this job. Can anyone pls share some sample code for doing this task.
I am trying to connect to webDAV directory and list out the files using the below piece of code, but i am getting the following error though the url is correct : "com.googlecode.sardine.util.SardineException: Failed to get resources. Is the url valid?". Could anyone please correct me if i am doing anything wrong here.