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 Tim Finney wrote:
Dear All, Is there a way to get direct access to database documents via HTTP? I would like to be able to do something like this (modelled on xdmp:document-get()): DB-doc-get( "http://www.example.com/path/to/somewhere/some-doc.xml", <options xmlns="xdmp:document-get" xmlns:http="xdmp:http"> <format>xml</format> <http:authentication> <http:username>user</http:username> <http:password>pass</http:password> </http:authentication> </options> ) In this example, path/to/somewhere would be a path to a place that exposes a database. Best, Tim Finney XQuery programmer UVa Press _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
