-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Both scripts (my own and the hello world script) are located inside a 'scripts' subfolder:
dav:/webdav/scripts/> ls Listing collection `/webdav/scripts/': succeeded. all-documents.xql 2717 Feb 15 17:46 all-documents.xslt 0 Feb 15 17:46 backup.xql 308 Feb 15 17:46 document-metadata.xql 3284 Feb 15 17:46 document-metadata.xslt 0 Feb 15 17:46 foo.xql 0 Feb 15 17:59 hello.xql 227 Feb 15 17:57 xml-query.xql 657 Feb 15 17:46
Calling
works.
Calling
http://host:port/all-documents.json http://host:port/all-documents.xml
does not work.
So I assume that there is something incompatible with the script. On eXist-db I would find some information related to the script within the logs about nothing can be found inside the BaseX logs.
Andreas
Christian Grün wrote:
Hi Andreas,
Thanks for your feedback.
I moved the following (under existdb 2.2 working) script to BaseX https://gist.github.com/zopyx/eee05f7a421a6c0b6b80
Where did you move the file to, and which URL did you call? I just moved it into the webapp directory. When addressing the following URL...
http://localhost:8984/all-documents.html
...I got 400, because the XQuery code is specific to eXist ("Module 'http://exist-db.org/xquery/transform' not found.").
So general question: does BaseX log related errors somewhere?
At least the standard logs don't contain anything related.
Maybe the question can already solved if we find out where you moved your restxq file. – The database log files (data/.logs) should contain all relevant information. If you address an unknown URL, you should get entries like the following ones:
12:11:19.098 0:0:0:0:0:0:0:1:10572 admin REQUEST [GET] http://localhost:8984/unknown 12:11:19.499 0:0:0:0:0:0:0:1:10572 admin 404 No function found that matches the request. 12.6 ms
Hope this helps, Christian
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU4jgnAAoJEADcfz7u4AZjcxALwIvmRvRz3m9SXsAGncDh0DTt sVaBk+s4CMzwTrz9VraZyjiV87y5VpL5KWio3WhPGet3jjR3u74C09swljo07h5c 8H75VAoWpf7TjaxqaqAOI2I+VZCZtkFfwwW34zFTBlYXkly6uRMEwppofcX+zc2+ ZEfIxF7g7B/mmW37zXtJVN2/pQMbfXEJisi2hDM/87QoIKyGyBN4NqSIMCucGLto fTYElkfQILUEb8CWzGDbJBnwOLB6MrHGShEZg/YVlSsvOoalsNsSagQ4yrUP2oBb G3d9g2CT7wAjs3K6fJROd9ZS5/Vw96+jsoECayW+8SqT+phXe/tmahDbBTrjEGxJ jnhkifviGhn4eRNukPf/3ZHAa5CI96X/ANtJrsyL3zMJ5KPresMUtJZ9sftit9kx bq2oqA8E+hmDzO2snFpPflDjdOUd5ABUcYMrGx7lqOVQNTOzRatBAH3dqpmQjZLb ha5S7yApyT7+3Lk841bNiTUH3zItPJQ= =iWtX -----END PGP SIGNATURE-----
- -- Regards Andreas Jung andreas@andreas-jung.com about.me/andreasjung