Revision [469]
This is an old revision of MarkLogicInvoke made by DavidLee on 2009-04-10 16:23:19.
Mark Logic Command: invoke
invoke calls a server side xquery on a Mark Logic serverSynopsis
invoke [-c uri|-connect uri] [-t] [-v] script [varname value [varname value ...]]Description
Invokes a script (xquery file) residing on a Mark Logic server.Optionally passing in variable (parameters) to the script.
-connect uri
-c uri Use the connection string instead of $MLCONNECT
-t Output result as text (instead of xml).
-v Assign variables (parameters) from the remaining arguments
script path to script on the marklogic server
Example
Assuming the prefix "ml" is imported as the marklogic module, invoke the "test.xq" script on the server passing in a parameter "id" with the value "123"$ ml:invoke -v test.xq id 123
MarkLogic Extension Module