You have many options with eXist :-)
Three such options -
1) Calling HTTP GET with the XQuery set on the _query parameter of the
url querysting.
2) Calling HTTP POST with the XQuery encoded in the request body.
3) Writting a .xql file and storing it in the database, you can then
call HTTP GET and POST directly against this .xql file. This in my
opinion is by far the best mecahnism (but it depends on your needs).
If you want a SQL analogy you could consider it similar to a package
or set of stored procedures, but really it is more that than, more
like SQL + JSP (or similar).
Documentation on all 3 mechanisms is available on the eXist website.
Thanks Adam.
2009/6/23 Ted Hickox <
megelinic@...>:
> Dear Adam,
>
> Are you saying that I should first create an .xql file and send it to
>
http://localhost:8080/exist/rest/db/ Then I should use a request method
> with parameters to process the query? When I did the same project with SQL
> I established a connection string and then stored my query instructions in a
> variable. After I did this, I sent the instructions to the SQL server. Is
> there no way to perform the same task in eXist? Thank you for all your
> help.
>
--
Adam Retter
eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb
------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open