Revision [1751]

This is an old revision of ExistInvoke made by DavidLee on 2011-06-03 06:20:37.

 

eXist Command: invokes

invokes a stored query on an eXist server

Synopsis

invoke [exist options] [options] query-uri

Description

Invokes a stored query residing on an eXist server.





Options

The get command accepts all eXist Common Options

-d,-data fileSupplies the contents of "file" as the input data to the stored query
-rawOutputs the results without any parsing. Supplying -d assumes -raw


If -d or -data is specified then the file (or standard input if "-") is supplied to the query. Otherwise no data is supplied to the query.




Example

Assuming the prefix "e" is imported as the exist, invokes the stored procedure "run.xquery"




e:invoke run.xquery





Implementation


invoke is implemented using the REST protocol using the GET and POST methods.
When no -data argument is supplied then GET is used and the result is wrapped by eXist into a structure which is parsed as XDM values (unless -raw is specified).
When a -data argument is supplied then POST is used and the resulting data is returned in the raw as text.

See http://exist.sourceforge.net/devguide_rest.html


eXist Extension Module
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki