|
From: Adam R. <ad...@ex...> - 2014-11-11 09:25:58
|
> Many thanks for your detailed responses to my questions! I've been storing queries in eXist, and just haven't worked out how to invoke them--so that looks like my next step.
For example if you have stored the file 'my-query.xq' into
/db/my-collection, and set the execute permission mode on it for your
user or other users (if you are accessing it unauthenticated), then
you can simply hit
http://localhost:8080/exist/rest/db/my-collection/my-query.xq to
invoke it. If you are visiting from a remote host, then you would
replace localhost:8080 with the hostname of the machine running eXist
and 8080 with the port number that eXist is using (which may well be
8080) or perhaps 80 if you are reverse proxying to eXist with Apache
HTTPD or Nginx.
There is also the alternatives of using XQuery URL Rewriting or
RESTXQ, which would change the URL that you access to invoke your
query, but well, that is covered better in the book and elsewhere.
> You asked if I want users to input their own query scripts, and the answer is, not really --because my students have their own Sandbox installation where they practice and learn XQuery--so this isn't a web interface for them. Rather, as you conjectured, I just need users to call particular scripts I'll have saved.
>
Then just as above.
> I'm interested in invoking the scripts directly, if I don't have to use PHP. And I may be back with more questions about all this as I experiment. (By the way, I purchased your book and I'm sure I'll be consulting it frequently!)
>
Thank you, please come again ;-)
--
Adam Retter
eXist Developer
{ United Kingdom }
ad...@ex...
irc://irc.freenode.net/existdb
|