Difference between revisions of "WebDAV"

From BaseX Documentation
Jump to navigation Jump to search
Line 5: Line 5:
 
==Starting WebDAV==
 
==Starting WebDAV==
  
The WebDAV implementation of BaseX is provided by a module (servlet) which runs in the BaseX HTTP server. Please check the [[Startup#BaseX HTTP Server|Startup: BaseX HTTP Server]] page for details on how to start the HTTP Server. The WebDAV service can either use the local databases or connect to a remote BaseX Server, as described in the [[Startup_Options#BaseX_HTTP_Server|startup options]] page.
+
First of all, launch the BaseX as [[Web Application]]. By default, [http://jetty.codehaus.org/jetty/ Jetty] is used as web server. All HTTP services will be available on port <code>8984</code>, and the WebDAV service is accessible at {{Mono|http://localhost:8984/webdav/}}.
 +
 
 +
If the server is started as Servlet, all [[Options#Main Options|Main Options]] (such as the path to the database) can be configured in the {{Mono|web.xml}} file. If run as a standalone application, the settings are stored in the file {{Mono|.basex}}.
  
 
==Accessing WebDAV==
 
==Accessing WebDAV==

Revision as of 18:10, 24 March 2012

This page is part of the Developer Section. It describes how to use the WebDAV file system interface.

BaseX offers access to the databases and documents using the WebDAV protocol. WebDAV provides convenient means to access and edit XML documents by representing BaseX databases and documents in the form of a file system hierarchy.

Starting WebDAV

First of all, launch the BaseX as Web Application. By default, Jetty is used as web server. All HTTP services will be available on port 8984, and the WebDAV service is accessible at http://localhost:8984/webdav/.

If the server is started as Servlet, all Main Options (such as the path to the database) can be configured in the web.xml file. If run as a standalone application, the settings are stored in the file .basex.

Accessing WebDAV

The BaseX WebDAV Server can be accessed using either with a http://<httphost>:<httpport>/webdav/ or webdav://<httphost>:<httpport>/webdav/ URL, depending on the used WebDAV client. By default, after starting the HTTP server, the following URL will be provided: http://localhost:8984/webdav/.

Authorization

The WebDAV service uses the database user credentials in order to perform authentication and authorization. If database user and password are explicitly specified when starting the BaseX HTTP Server using the corresponding startup options, WebDAV will not request additional user authentication from the client.

WebDAV Clients

Please check out the following tutorials to get WebDAV running on different operating systems and with oXygen:

Changelog

Version 7.0

  • WebDAV API introduced