On 15/01/2014, Christian GrĂ¼n christian.gruen@gmail.com wrote:
Problem accessing /. Reason: No function found that matches the request.
404 indicates that your XQuery code is correct, but that no mapping for your URL is found. What are the values for..
- your URL?
The xml database file is stored in '/path/to/webapp' and the url is stated in the xqm file as:
... %rest:path("xmldatabasefile.xml/bookstore/book") ...
- your %rest:path argument?
As above, is correct?
- your RESTXQ url-pattern in web.xml?
/path/to/webapp/WEB-INF/web.xml: line77 <url-pattern>/*</url-pattern> 97 <url-pattern>/rest/*</url-pattern> 117 <url-pattern>/webdav/*</url-pattern> 130 <url-pattern>/static/*</url-pattern>
Usually, the easiest way is to start off with the given examples (in the BaseX zip/exe distribution or the ones shown in the Wiki) and modify them to your needs.
I've tried using the wiki page suggested, without any success in understanding (!)