Database Reference
In-Depth Information
HTTP POST Parameters
When making an HTTP POST request to eXist's REST Server, you can send an XML
document in the body describing an XQuery to be executed and parameters to con‐
trol the execution and serialization of results. In many ways this is very similar to the
process described in the previous section, but it uses POST and an XML document as
opposed to GET and URL query parameters.
The XML grammar describing the XML document that can be sent in the body of an
HTTP POST to the REST Server is as follows:
<exist:query xmlns:exist= "http://exist.sourceforge.net/NS/exist
start? = number
max? = number
cache? = (" yes" | "no")
session? = string
typed? = ("yes" | "no")
( wrap = ("yes" | "no") | enclose = ("yes" | "no"))?
encoding? = string
method? = string >
(exist:text,
exist:variables?,
exist:properties?)
</exist:query>
The attributes on the exist:query element are documented in Table B-2 , while the
exist:text , exist:variables , and exist:properties elements are documented
further in “text XML grammar” on page 540 , “variables XML grammar” on page 540 , and
“properties XML grammar” on page 540 , respectively.
Search WWH ::




Custom Search