Hello Florent, thanks for your interest in this server interface that we have named "XQuery Services".
I lack time currently to respond to these questions, but here are a few remarks: - first, XQS is obviously something very embryonic. There is certainly a great potential for applications here, but it would be of greater interest if it were somewhat standardized. We would be interested to develop the specifications of this interface in concert with other people. - about error reporting: we have designed the protocol in this way for at least 2 reasons: 1) broken HTTP clients that cannot handle http error codes the most (in)famous is Flash 2) difficulties with servlet containers when 400 and 500 codes are used, it is not always possible to control the contents of the response, and we want to send the details of the error. - the current implementation of XQuery Services is clearly insufficient. - access to HTTP headers etc is not something that we consider in XQS. For tsuch features, we are thinking of another interface not yet published, similar to what exists already in other products. We call it 'XQuery WebApps' or 'XQuery Server Pages', and it would be HTTP oriented, while XQS would be similar to Web Services (but much simpler). I hope we can discuss these topics more deeply later. Best -- Xavier Franc Qizx design and development On Sat, 02 Oct 2010 21:29:07 +0200, Florent Georges <li...@fgeorges.org> wrote: > Hi, > > I have the following service in [qizx-data]/xqs/test/hello: > > declare variable $param:who as xs:string external; > <hello>{ $param:who }</hello> > > When I access http://localhost:8080/xqs/test/hello (so without > setting the param ?who=), I get the following error: > > Evaluation: XQST0054 variable $param:who depends on itself > at line 1 column 17 > > But in this case, I think I should rather get an err:XPDY0002, > as explained in XQuery, 4.14 Variable Declaration. > > By the way, the response is then an HTTP 200, with Content-Type > text/x-qizx-error. As this is not a standard type, the browser > every time ask which application I want to use to view it. And > using a 200 make it difficult to detect when using the service > programatically. Why not a 500 with text/plain instead? > > Regards, > -- Qizx Support List qizx-support@xmlmind.com http://www.xmlmind.com/mailman/listinfo/qizx-support