Hello Bita,

You may want to have a look at some of the test cases (the headers part
contains the http header, the body the http body, in the example physically
located in a file). The test suite uses variables enclosed in %...%

           <request>
              <command
varUsage="globalVariableCollection,globalVariableServerName">PUT
/%globalVariableServerName%/%globalVariableCollection%/help-doc.html
HTTP/1.1</command>
           <header>Accept-Language: en-us</header>
           <header>Translate: f</header>
              <header>User-Agent: Microsoft Data Access Internet Publishing
Provider DAV</header>
              <header>Connection: Keep-Alive</header>
              <body fileReference="../../../contentDirectory/html.html">
              </body>
           </request>

Further more, I would like to know in this case, if the user had no
permission
for all of resources, what would  happen? I mean, in this case  all the
requst
will be refused or it will be done partly as their  permissions let. I would
like to be refused the request totally, however it seems it will be done
partly, or maybe I am wrong. What do you think?

This functional request would require, that the execution of further steps
depends on the response code, or even the value of the XML response
document. I would consider this a second extension step. Would this be
crucial for your work? Additionally variable would be helpful (in a
second/third) step, consider following batch sequence:  lock, put, unlock.
The lock token from the first lock command need to be transferred to the put
and unlock command.

Best regards

Juergen


 -----Original Message-----
From:   Bita Shadgar [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, February 25, 2002 14.42 PM
To:     Slide Users Mailing List
Subject:        Re: Batch methods

"Pill, Juergen" wrote:

> Hello Bita,
>
> Yes, those classes would go into those packages. The Batch method in the
> server part would instantiate the requested batched methods (e.g. a series
> of deletes).
>
> For the request I would use
> "...\jakarta-slide\testsuite\testsuite\junit\Tprocessor.dtd" as a starting
> point:
> <!ELEMENT request (command, header*, body?)>

Yes, you right. The thing I don't know is about what should go in header and
body. I mean which format is the best for them.

>
> Why not use <!ELEMENT request (command, header*, body?)> as the response,
in
> this case a multiple get would be possible too. Binary data is currently
> read via the fileReference element, in your case you would need to define
> how binary data would be transported within an utf-8 encoded XML document.
>

Further more, I would like to know in this case, if the user had no
permission
for all of resources, what would  happen? I mean, in this case  all the
requst
will be refused or it will be done partly as their  permissions let. I would
like to be refused the request totally, however it seems it will be done
partly, or maybe I am wrong. What do you think?

>
> Best regards,
>
> Juergen

Thanks,
Bita


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

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

Reply via email to