Slide uses HttpClient version 1.x.
Actually it was devellopped over here and moved over to commons 7 months
ago. During this move the API was changed and isn't usable anymore with
slide.
Use the version in Slide CVS to have a compatible version.

You can use the HttpClient directly to execute a method:
HttpClient client=new HttpClient();
client.startSession("localhost",8080,new Credentials("dirk","dirk"));
client.setDebug(10);
MkcolMethod mc=new MkcolMethod();               
mc.setPath("/slide/files/newpath");
client.executeMethod(mc);
client.endSession();

Or use the WebdavResource interface:
HttpURL httpUrl      = new HttpURL("http://localhost:8080/slide";);
httpUrl.setUserInfo("root","root");
WebdavResource webDR = new WebdavResource(httpUrl);
System.out.println(webDR.getStatusMessage());

Both the HttpClient and WebdavResource have a setDebug method to dump
the request/response to screen.

If you only want to test a server use the slide cmd-line client.
It also has a "set debug on" command.


Dirk

Yuriy Zubarev wrote:
> 
> Hello everyone,
> 
> I'm a complete rookie in this WebDAV realm and basically
> I'm interested in development of client side for querying WebDAV
> resource. First I downloaded HTTPClient from Jakarta Commons
> and decided to try it in conjunction with PropFindMethod object from
> client API of Slide. After managing in this way I got
> java.lang.NoSuchFieldError
> exception and got an expression that Slide maintained its own
> version HTTPClient, is it true in any way? What I was trying to achieve
> was to create test program that connects to a site, sends 'propfind' request
> with XML schema and dumps on the screen server's response
> (what's the best way to get it done?). Then I thought that
> WebdavResource object was what I need but playing around
> with it I didn't get far. So I would like to ask people
> if there is some 'hello world' examples out there for client-side
> application to talk with WebDAV resources.
> 
> Thank you for your time.
> 
> Best of luck,
> Yuriy Zubarev


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

Reply via email to