restxq
I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minimally modify restxq.xqm, the modifications do not apply either. Any idea about what the problem might be? Thanks.
…difficult to tell. Could you please provide us with a minimized version and tell us the exact steps how to proceed (1. download basex91.zip, 2. unzip, etc.)?
Quoted text · Giuseppe G. A. Celano · 4 lines
On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano <celano at informatik.uni-leipzig.de> wrote: > > I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minimally modify restxq.xqm, the modifications do not apply either. Any idea about what the problem might be? Thanks.
It looks like your basexhttp server is pointing to a different directory than the one you expect. This might happen from time to time depending on type of installation env variables and things like that. M.
Quoted text · Christian Grün · 7 lines
On 09/11/18 13:30, Christian Grün wrote: > …difficult to tell. Could you please provide us with a minimized > version and tell us the exact steps how to proceed (1. download > basex91.zip, 2. unzip, etc.)? > On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano > <celano at informatik.uni-leipzig.de> wrote: >> I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minimally modify restxq.xqm, the modifications do not apply either. Any idea about what the problem might be? Thanks.
Hi Marco,
I think you are right, but I cannot find the webapp folder which is used when I launch basexhttp. I am sure the basexhttp I launch is the one I want to launch, but the webapp folder it checks for .xqm files is not the one within the "basex" folder containing both of them.
Quoted text · Marco Lettere · 15 lines
> On Nov 9, 2018, at 1:34 PM, Marco Lettere <m.lettere at gmail.com> wrote: > > It looks like your basexhttp server is pointing to a different directory than the one you expect. > This might happen from time to time depending on type of installation env variables and things like that. > M. > > On 09/11/18 13:30, Christian Grün wrote: >> …difficult to tell. Could you please provide us with a minimized >> version and tell us the exact steps how to proceed (1. download >> basex91.zip, 2. unzip, etc.)? >> On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano >> <celano at informatik.uni-leipzig.de> wrote: >>> I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minimally modify restxq.xqm, the modifications do not apply either. Any idea about what the problem might be? Thanks. > >
Hi Giuseppe,
You can use the dba app to see what settings are in use. Goto url /dba/settings and check WEBPATH.
/Andy
Quoted text · Giuseppe G. A. Celano · 37 lines
On Fri, 9 Nov 2018 at 13:10, Giuseppe G. A. Celano < celano at informatik.uni-leipzig.de> wrote: > Hi Marco, > > I think you are right, but I cannot find the webapp folder which is used > when I launch basexhttp. I am sure the basexhttp I launch is the one I want > to launch, but the webapp folder it checks for .xqm files is not the one > within the "basex" folder containing both of them. > > > On Nov 9, 2018, at 1:34 PM, Marco Lettere <m.lettere at gmail.com> wrote: > > It looks like your basexhttp server is pointing to a different directory > than the one you expect. > This might happen from time to time depending on type of installation env > variables and things like that. > M. > > On 09/11/18 13:30, Christian Grün wrote: > > …difficult to tell. Could you please provide us with a minimized > version and tell us the exact steps how to proceed (1. download > basex91.zip, 2. unzip, etc.)? > On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano > <celano at informatik.uni-leipzig.de> wrote: > > I am trying to make a RESTXQ webservice I created with BaseX 8.3 available > in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, > when I type the path of a function contained in it, it does not work ("No > function found that matches the request."). Strangely enough, when I > minimally modify restxq.xqm, the modifications do not apply either. Any > idea about what the problem might be? Thanks. > > > > >
Hi Andy,
Thank you so much. Thanks to your suggestion, I have been able to detect the right directory. I made a copy of my basex folder from the Desktop into another folder, and strangely the webpath of the basex folder in the Desktop was referred to even if I used the basexhttp command of the other basex folder.
Ciao, Giuseppe
Quoted text · Andy Bunce · 45 lines
> On Nov 9, 2018, at 6:21 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > > Hi Giuseppe, > > > You can use the dba app to see what settings are in use. Goto url /dba/settings and check WEBPATH. > > > /Andy > > > > > > > On Fri, 9 Nov 2018 at 13:10, Giuseppe G. A. Celano <celano at informatik.uni-leipzig.de> wrote: > > > > Hi Marco, > > > > I think you are right, but I cannot find the webapp folder which is used when I launch basexhttp. I am sure the basexhttp I launch is the one I want to launch, but the webapp folder it checks for .xqm files is not the one within the "basex" folder containing both of them. > > > > > > > > > > > > > > > > > > > > > On Nov 9, 2018, at 1:34 PM, Marco Lettere <m.lettere at gmail.com> wrote: > > > > > > It looks like your basexhttp server is pointing to a different directory than the one you expect. > > > This might happen from time to time depending on type of installation env variables and things like that. > > > M. > > > > > > On 09/11/18 13:30, Christian Grün wrote: > > > > > > > …difficult to tell. Could you please provide us with a minimized > > > > version and tell us the exact steps how to proceed (1. download > > > > basex91.zip, 2. unzip, etc.)? > > > > On Fri, Nov 9, 2018 at 1:03 PM Giuseppe G. A. Celano > > > > <celano at informatik.uni-leipzig.de> wrote: > > > > > > > > > I am trying to make a RESTXQ webservice I created with BaseX 8.3 available in Basex 9.2. I simply copied my "file.xqm" into the webapp folder but, when I type the path of a function contained in it, it does not work ("No function found that matches the request."). Strangely enough, when I minimally modify restxq.xqm, the modifications do not apply either. Any idea about what the problem might be? Thanks.
Written for BaseX 9.1. BaseX may have changed since: please check the current documentation.