On 16/01/2014, Dirk Kirsten dk@basex.org wrote:
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?
Not necessary, I found my mistake, which to use the http domain.
However, it should work if your path annotation is:
%rest:path("xmldatabasefile.xml/bookstore/book")
With this applied, and the url 'http://localhost:8984/xmldatabasefile.xml/bookstore/book' loaded into the web browser, I finally have a desirable result!
Giada De Laurentiis 2005 30.00
However, it is noticed that the web browser window title has changed to:
'Everyday Italian - Opera'
What has caused this behaviour?
Also for the web browser url 'http://localhost:8984/test', the html form is visible, but submitting the 'get' request does not return the result of the query.