This will not work, because the URL you try to access doesn't already
exist.

Either use a constructor where you can pass the action parameter
'NOACTION' or do this:

HttpURL url = new HttpURL("http://MyServer:80/Publish";);
WebdavResource temp1 = new WebdavResource(url);
temp1.mkcolMethod("/Publish/toto");

Ingo


> With the WebdavRessource :
>                       HttpURL url = new HttpURL("http://MyServer:80/Publish/toto";);
>                       WebdavResource temp1 = new WebdavResource(url);
>                       temp1.mkcolMethod();
> 
> i have an http exception :
> 
> org.apache.commons.httpclient.HttpException
>       at 
> org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3145)
>       at 
> org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3105)
>       at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:841)
>       at 
> org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:786)
>       at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1706)
>       at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1116)
>       at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1135)
>       at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1221)
>       at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:254)
> the reason code for the http exception is 404.
>  
> 
> -----Message d'origine-----
> De:   Martin Dulisch [SMTP:[EMAIL PROTECTED]
> Date: lundi 1 mars 2004 14:51
> A:    Slide Users Mailing List
> Objet:        Re: org.apache.webdav.lib.WebdavException
> 
> Try to use WebDAVResource instead of WebdavFile.
> 
> Martin
> 
> 
> Jean-Philippe Pattus wrote:
> 
> > Another question, sorry it's my first time with dav and slide .
> > how can i create a subdirectory :
> > my code is :
> > 
> >     WebdavFile temp1 = new WebdavFile(new 
> > HttpURL("http://MyServer:80/Publish/titi";));
> >     temp1.mkdir();
> > 
> > where Publish is an alias on my http server. When i execute my code the 
> > result is :
> > org.apache.webdav.lib.WebdavException
> >     at org.apache.webdav.lib.WebdavFile.mkdir(WebdavFile.java:539)
> >     at org.apache.webdav.lib.WebdavFile.main(WebdavFile.java:658)
> > 
> > i don't understand what is exactly the problem. is there an authentication 
> > problem (i don't put authentication on my server), or is the problem 
> > between my chair and my screen.
> > 
> > regards,
> >  jp
> > 
> > Jean-Philippe Pattus
> > Sogitec Industries - www.sogitec.fr
> > Division Documentation et Systemes
> > Tel. : 02.99.05.34.25
> > Fax : 02.99.05.34.05
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -- 
> Martin Dulisch
> Open Source Group, S&N AG
> [EMAIL PROTECTED]


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

Reply via email to