That's a good place to start. If your next move might be to PUT or
DELETE an arbitrary document, then you might also be interested in a
WebdavServer or one of the approaches discussed in
http://markmail.org/message/cw74nuu3iz4blex4 - with the error handler,
for example, you could simply intercept any 404 errors and call doc() to
resolve them.
-- Mike
Tim Finney wrote:
Michael,
I want a straightforward way to get an XML document (not necessarily
XHTML) from a database via HTTP just by supplying a URL of the form
http://host/path/file (not of the form
http://host/path/xquery?name=file).
Thanks for your suggestions. It sounds like your second idea (setting
HTTP server parameters) might do it.
Tim
On Tue, 2008-12-09 at 17:27 -0800, Michael Blakeley wrote:
Tim,
I don't quite understand your question. Do you want fn:doc()?
Or would you like HTTP clients to be able to request docs? If so, you
can simply set the HTTPServer "modules" location and root to point to
your content database.
Or do you want xdmp:document-get(), which can act like an http client
itself? There is also xdmp:http-get(), plus other HTTP verbs.
-- Mike
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general