Subject:Exposing xquery as webservice issue Author:Bruce Cantor Date:30 Mar 2022 11:31 AM
Hi
I am trying to create a webservice as described in chapter 9 of DataDirect XQuery® User’s Guide and Reference (ddxug.pdf)
I would like to create simple webservice that makes it possible to download a stockfile if you know the name of the file.
So, finding that the XQueryWebService Framework makes it possible to expose a xquery script as a rest service I have tried to create the above web project.
But I am having trouble getting it to work.
The webserver just returns 'This page cannot be displayed'
I am thinking that it might be related to this statement in the documentation:
"Let's take a look at emp.xquery, which we have saved to our
local XQuery directory (c:\MyQueryDir, as defined in web.xml)."
I cannot find any reference in the documentation how to define the path in the web.xml file. Currently the xquery file is just located in {tomcat_home}/webapps/project
IS the missing definition in the web.xml file the problem?
If so, how do I define the path in the web.xml file?
Attached is a zip of my very simple project that should return the filename param to the user when called.