plz find the sample code below. the particular URI will create a simple new default xml under 'example' database. This was working fine in the previous versions, but with the latest release(BaseX74-20120829.045851.zip), its just hanging and never producing any response. Is there anywhere I need to do configuration?
I’m currently revising the RESTXQ locking mechanism. Do you work with a single BaseX instance, or does "10.18.48.180" refer to another machine?
In the first case, your query might not be supported anymore in future versions, because it is conceptually dangerous to call an updating query from a reading query in the same instance. The reason is that your first query could reference database contents that are modified by the send-request() call, which would make them invalid in your query. – The preferred solution here is to use XQuery Update for all your updating operations. If you want to create new databases, we will soon offer a db:create() command.
In the second case (if you work with two BaseX instances), I’m not sure what could be the reason.
Christian
basex-talk@mailman.uni-konstanz.de