On 16/01/14 12:03, e-letter wrote:
On 16/01/2014, Dirk Kirsten <dk@basex.org> wrote:
No, you don't want to change your %rest:path() annotation. You _never_ put anything like http://localhost into your %rest:path() annotation. The URLs I have given are the URLs you have to enter in your browser to access this functions.
The result of the url 'http://localhost:8984/test' in the web browser is a web page with the html form. Finally, I have made a millimetre of progress! :)
We are very happy to hear that!
The result of 'http://localhost:8984/xmldatabasefile.xml/bookstore/book' is:
HTTP ERROR 404
Problem accessing /xmldatabasefile.xml/bookstore/book. Reason: No function found that matches the request.
Powered by Jetty://
Could you please send the whole function + annotations once again? However, it should work if your path annotation is: %rest:path("xmldatabasefile.xml/bookstore/book") -- Dirk Kirsten, BaseX GmbH, http://basex.org |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22