Hi,
In a XCC call from Java to ML, we use session.newAdhocQuery() to execute
particular xquery code snippet against ML.
AdhocQuery q = session.newAdhocQuery(XQUERY_VERSION_1_0_ML
+ DECLARE_NS_MLSS_XDMP_STATUS_SERVER_V1_0
+ "let $status := \n"
+ " xdmp:server-status(xdmp:host(), xdmp:server())\n"
+ "let $modules := $status/mlss:modules\n"
+ "let $root := $status/mlss:root\n"
+ "return (data($root))");
Can I get to know whether it is possible to do the same using http call
within ML(from a xqy file) using any functions like xdmp:http-post/get.
Currently there is a way to execute using CQ's eval.xqy file to evaluate a
xquery and get response back.
As far I searched, I could not find a way to execute a xquery code snippet
without having that in a ".xqy" file using http.
My requirement is to execute a xquery code from one host to another host
without having that in a ".xqy" file.
Can we directly pass a query and get results back using http call.
Thanks,
Prasanth
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general