You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Laurent Michenaud <lm...@adeuza.fr> on 2005/05/09 11:43:27 UTC

bind example ?

Has anybody a bind example ?

 

I've tried to use it. In the tomcat console, I can see a successful
creation message

but I can't see it anywhere.

 

HttpURL oHttpURL = new HttpURL("http://" + SLIDE_HOST + ":" + SLIDE_PORT
+ SLIDE_DOMAIN);

oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD);

WebdavResource oWebdavResource = new WebdavResource(oHttpURL);

oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT);

try {

     r_bSuccess = oWebdavResource.bindMethod("/slide/files/test",

           "/slide/files/lien");

     oWebdavResource.commitTransaction();

} catch( Exception e ) {

      oWebdavResource.abortTransaction();

}

finally {

      oWebdavResource.close();

}

 

In the console, I can see :

http-8080-Processor21, 09-mai-2005 11:41:01, root, BIND, 201 "Created",
0 ms, /files

taille du doc : 112

 

 

Any idea ?


Re: bind example ?

Posted by Paul Hussein <pa...@terma.it>.
There is example code in the slide client














Laurent Michenaud wrote:

>Has anybody a bind example ?
>
> 
>
>I've tried to use it. In the tomcat console, I can see a successful
>creation message
>
>but I can't see it anywhere.
>
> 
>
>HttpURL oHttpURL = new HttpURL("http://" + SLIDE_HOST + ":" + SLIDE_PORT
>+ SLIDE_DOMAIN);
>
>oHttpURL.setUserinfo(SLIDE_ADMIN, SLIDE_PASSWORD);
>
>WebdavResource oWebdavResource = new WebdavResource(oHttpURL);
>
>oWebdavResource.startTransaction(SLIDE_ADMIN, SLIDE_TIMEOUT);
>
>try {
>
>     r_bSuccess = oWebdavResource.bindMethod("/slide/files/test",
>
>           "/slide/files/lien");
>
>     oWebdavResource.commitTransaction();
>
>} catch( Exception e ) {
>
>      oWebdavResource.abortTransaction();
>
>}
>
>finally {
>
>      oWebdavResource.close();
>
>}
>
> 
>
>In the console, I can see :
>
>http-8080-Processor21, 09-mai-2005 11:41:01, root, BIND, 201 "Created",
>0 ms, /files
>
>taille du doc : 112
>
> 
>
> 
>
>Any idea ?
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org