By default, web applications use the ''Server Mode''. The operation mode can be configured as explained below.
==Available Services==
To enable or disable one of the provided services, the corresponding servlet entry in the {{Code|web.xml}} file needs to be removed/commented. The default URL paths are listed in the following table:
{| class="wikitable"
|- valign="top"
! Service
! URL
! usage
|- valign="top"
| [[REST]]
| {{Code|http://[host]:[port]/[servlet_context_path]/rest}}
| access XML database and its resources, see [[REST]]
|- valign="top"
| [[RESTXQ]]
|{{Code|http://[host]:[port]/[servlet_context_path]/restxq}}
| create XQuery Web Services, see [[RESTXQ]]
|- valign="top"
| [[WebDAV]]
| {{Code|http://[host]:[port]/[servlet_context_path]/webdav}} or<br/>{{Code|webdav://[host]:[port]/[servlet_context_path]/webdav}} (depending on client)
| access databases via the filesystem, see [[WebDAV]]
|- valign="top"
| [[DirectServlet]]
| <code>http://[host]:[port]/[servlet_context_path]/*.{xq,bxs,...}</code>
| invoke BaseX scripts and XQuery scripts directly on the server (since {{Version|7.5}})
|- valign="top"
| Web Server
| {{Code|http://[host]:[port]/[servlet_context_path]}}
| access your standard web files (e.g. HTML, JavaScript or CSS).
|}
==Configuring Database Access==
How to set these options in the {{Code|web.xml}} of the BaseX web application is specific to the servlet container. For example, in Jetty it is done by [http://docs.codehaus.org/display/JETTY/override+web.xml overriding the web.xml] file. Another option is to directly edit the {{Code|WEB-INF/web.xml}} file in the WAR archive (WAR files are simple ZIP files). Refer to the sample [https://github.com/BaseXdb/basex-api/blob/master/src/main/webapp/WEB-INF/web.xml web.xml] of the basex-api package.
==Available Services==
To enable or disable one of the provided services, the corresponding servlet entry in the {{Code|web.xml}} file needs to be removed/commented. The default URL paths are listed in the following table:
{| class="wikitable"
|- valign="top"
! Service
! URL
! usage
|- valign="top"
| [[REST]]
| {{Code|http://[host]:[port]/[servlet_context_path]/rest}}
| access XML database and its resources, see [[REST]]
|- valign="top"
| [[RESTXQ]]
|{{Code|http://[host]:[port]/[servlet_context_path]/restxq}}
| create XQuery Web Services, see [[RESTXQ]]
|- valign="top"
| [[WebDAV]]
| {{Code|http://[host]:[port]/[servlet_context_path]/webdav}} or<br/>{{Code|webdav://[host]:[port]/[servlet_context_path]/webdav}} (depending on client)
| access databases via the filesystem, see [[WebDAV]]
|- valign="top"
| [[DirectServlet]]
| <code>http://[host]:[port]/[servlet_context_path]/*.{xq,bxs,...}</code>
| invoke BaseX scripts and XQuery scripts directly on the server (since {{Version|7.5}})
|- valign="top"
| Web Server
| {{Code|http://[host]:[port]/[servlet_context_path]}}
| access your standard web files (e.g. HTML, JavaScript or CSS).
|}
=Maven=