|
Hello Everybody , I am getting the following error while I am trying to upload the file programmatically using slide api The source code is as follows .. import java.io.File; public class SlideClient { public static void main (String args[]) The error is http-8080-Processor25, 22-Nov-2004 16:04:48, root, PROPFIND, 207 "Multi-Status", 550 ms, /files |
Your response is highly appreciated ....Thanksmahesh L.==========
Note: forwarded message attached.
Yahoo! India Matrimony: Find your life partner online.
--- Begin Message ---
Hello Every body ..I am in need of a simple program which uploads the file into oracle store using slide webdev client (slide content management system CMS).import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpURL;
import org.apache.webdav.lib.WebdavResource;public class SlideClient {public static void main (String args[])
{
try
{
System.out.println("\nCreateing HttpURL object");HttpURL httpurl = new HttpURL("http://localhost:8080/slide/files");
System.out.println(" \nSetting the user info ");
httpurl.setUserinfo("root","root");
System.out.println(" \nCreating the webdavResouce object ");
WebdavResource wdr = new WebdavResource(httpurl);
System.out.println("\nCreating file object ");
File fn = new File("C:/jakarta-slide-webdavclient-bin-2.1b2/bin/tmp.txt");
System.out.println(" Put method is invoked ");
wdr.putMethod(fn);
System.out.println("Put Method has worked ");
wdr.close();
}
catch(MalformedURLException mue)
{
}
catch(HttpException he)
{
}
catch(IOException ioe)
{
}
}
}Its giving the following error ...INFO: Server startup in 24155 ms
http-8080-Processor25, 12-Nov-2004 12:53:10, root, PROPFIND, 207
"Multi-Status", 481 ms, /files
http-8080-Processor25, 12-Nov-2004 12:53:11, root, PUT, 403 "Forbidden", 10 ms,
/filesThanks..,,MAHESH L.==========Yahoo! India Matrimony: Find your life partner online.
--- End Message ---
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
