Hi Phil,

this is the my code ...look into that...i thing it's
in server configuration ...but i used the DAV Explorer
to connect the Server...it's working and...another one
is ...i downloaded the Jakarta Slide Client Bin...it's
also working ....

but this simple program is not working ....
// Slide Simple WebDAV client example
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;

import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.*;
import org.apache.webdav.lib.*;

public class SlideTest {

    public static void main (String args[])
    {

        try
        {
            HttpURL hrl =new
HttpURL("http://srinivas:1999/slide/files";);

            hrl.setUserinfo("john","john");
                        System.out.println("Url
Connected........................."+hrl.getPath());
            WebdavResource wdr = new
WebdavResource(hrl);
            if(wdr==null){
            System.out.println("Some thing wrong on
connection to WebDav....");
            }
                        System.out.println("Url
Connected........................."+wdr.getDisplayName());
                        System.out.println(
wdr.getPath());
            wdr.putMethod(args[0]);
            wdr.close();
        }
        catch(MalformedURLException mue)
        {
          mue.printStackTrace();
        }
        catch(HttpException he)
        {
          he.printStackTrace();
        }
        catch(Exception ioe)
        {
          ioe.printStackTrace();
        }
    }
}


and the out put is...............

Url Connected........................./slide/files
log4j:WARN No appenders could be found for logger
(org.apache.commons.httpclient
.HttpClient).
log4j:WARN Please initialize the log4j system
properly.
org.apache.commons.httpclient.HttpException
        at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
va:3467)
        at
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
va:3423)
        at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java
:967)
        at
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResourc
e.java:912)
        at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.jav
a:1894)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
301)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
320)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
408)
        at
org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290)
        at SlideTest.main(SlideTest.java:21)



Thanks
Srinivas
--- "Burnside, Phillip (UK - Glasgow)"
<[EMAIL PROTECTED]> wrote:

> Srinivas,
>  
> Can you post your full code up to the list and I'll
> have a look,
>  
> Rgrds
> Phil
> 
>       -----Original Message----- 
>       From: Srinivas Rao [mailto:[EMAIL PROTECTED] 
>       Sent: Fri 22/07/2005 07:20 
>       To: Slide Users Mailing List 
>       Cc: 
>       Subject: RE: i am new to Slide and not able to
> connecting client.........please help ...
>       
>       
> 
>       Hi Phillip,
>       
>       I tried using the import org.apache.webdav.lib.*;
>       
>       but i am getting the same error....how can i solve
>       this problem???
>       
>       Any idea???
>       
>       Thanks
>       Srinivas
>       
>       --- "Burnside, Phillip (UK - Glasgow)"
>       <[EMAIL PROTECTED]> wrote:
>       
>       > Try using
>       > import org.apache.webdav.lib.*;
>       > 
>       > instead of
>       > 
>       > import org.apache.webdav.lib.WebdavResource;
>       >
>       >       -----Original Message-----
>       >       From: Srinivas Rao
> [mailto:[EMAIL PROTECTED]
>       >       Sent: Thu 21/07/2005 17:38
>       >       To: Slide Users Mailing List
>       >       Cc:
>       >       Subject: i am new to Slide and not able to
>       > connecting client.........please help ...
>       >      
>       >      
>       >
>       >       Hi Friends,
>       >      
>       >       I got few samples from friends and ne
> alos....but i
>       > am not able to connect the client through the
>       > WebdavResource ...
>       >      
>       >       this is the code.....
>       >       import
> org.apache.commons.httpclient.HttpException;
>       >       import
> org.apache.commons.httpclient.HttpURL;
>       >       import
> org.apache.webdav.lib.WebdavResource;
>       >      
>       >      
>       >       HttpURL hrl =new
>       > HttpURL("http://srinivas:1999/slide/);
>       >                   hrl.setUserinfo("john","john");
>       >       WebdavResource wdr = new
> WebdavResource(hrl,
>       > WebdavResource.ALL, 0); // here i am getting the
>       > Error...
>       >      
>       >       System.out.println( wdr.getPath());
>       >                   wdr.putMethod(args[0]);
>       >                   wdr.close();
>       >      
>       >       Here is the Exception......
>       >      
>       >       org.apache.commons.httpclient.HttpException
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
>       >       va:3392)
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.ja
>       >       va:3351)
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.setAllProp(WebdavResource.java:9
>       >       80)
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.jav
>       >       a:1900)
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1
>       >       301)
>       >               at
>       >
> 
>
org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:223)
>       >               at
> SlideTest.main(SlideTest.java:21)
>       >      
>       >       Can u tell me what is the Wrong in my
> code....
>       >      
>       >      
> __________________________________________________
>       >       Do You Yahoo!?
>       >       Tired of spam?  Yahoo! Mail has the best
> spam
>       > protection around
>       >       http://mail.yahoo.com
>       > 
>       > IMPORTANT NOTICE
>       > If you have received this e-mail in error or wish
> to
>       > read our e-mail disclaimer statement and
> monitoring
>       > policy, please refer to the statement below or
>       > contact the sender.
>       > This communication is from Deloitte & Touche LLP.
> 
>       > Deloitte & Touche LLP is a limited liability
>       > partnership registered in England and Wales with
>       > registered number OC303675.   A list of members'
>       > names is available for inspection at Stonecutter
>       > Court, 1 Stonecutter Street, London EC4A 4TR,
> United
>       > Kingdom, the firm's principal place of business
> and
>       > registered office.   Deloitte & Touche LLP is
>       > authorised and regulated by the Financial
> Services
>       > Authority.
>       > This communication and any attachments contain
>       > information which is confidential and may also be
>       > privileged.   It is for the exclusive use of the
>       > intended recipient(s).  If you are not the
> intended
>       > recipient(s) please note that any form of
>       > disclosure, distribution, copying or use of this
>       > communication or the information in it or in any
>       > attachments is strictly prohibited and may be
>       > unlawful.  If you have received this
> communication
>       > in error, please return it with the title
> "received
>       > in error" to [EMAIL PROTECTED] then
>       > delete the email and destroy any copies of it.
>       > E-mail communications cannot be guaranteed to be
>       > secure or error free, as information could be
>       > intercepted, corrupted, amended, lost, destroyed,
>       > arrive late or incomplete, or contain viruses. 
> We
>       > do not accept liability for any such matters or
>       > their consequences.  Anyone who communicates with
> us
>       > by e-mail is taken to accept the risks in doing
> so.
>       >  When addressed to our clients, any opinions or
>       > advice contained in this e-mail and any
> attachments
>       > are subject to the terms and conditions expressed
> in
>       > the governing Deloitte & Touche LLP client
>       > engagement letter.
>       > Opinions, conclusions and other information in
> this
>       > e-mail and any attachments which do not relate to
>       > the official business of the firm are neither
> given
>       > nor endorsed by it.
>       >
>       > >
> 
>
---------------------------------------------------------------------
>       > To unsubscribe, e-mail:
>       > [EMAIL PROTECTED]
>       > For additional commands, e-mail:
>       [EMAIL PROTECTED]
>       
>       
>       
>                      
> 
> ____________________________________________________
>       Start your day with Yahoo! - make it your home page
>       http://www.yahoo.com/r/hs
>       
> 
=== message truncated ===>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to