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.
Subject:Exposing xquery as webservice issue Author:Bruce Cantor Date:19 Oct 2022 11:27 AM
Hi Ivan
In the XPS I end up with the same result.
I have defined a simple pipeline that does nothing but return the posted XML back to the client.
It is placed in C:\xps\pipelines\PipelinesIn and named TestWebService.IngoingFlow.pipeline
together with the binding file TestWebService.IngoingFlow.pipeline.binding
But when I try to call the endpoint I am unsure what the URL should be, nothing I try ends up triggering the pipeline, I get an 'Can’t reach this page' error, and when I use Postman to post to the URL I can see an error like this one in the consol: 'Error: connect ECONNREFUSED 127.0.0.1:80'.