Hi Huib,
could you try the POST request, but without specifying the namespace of the query element:
url -i -X POST -H "Content-Type: application/query+xml" -d "<query><text>count(/user)</text></query>" "admin:admin@localhost:8984/basex/jax-rx/lexus/"
Dimitar
Am Dienstag 31 Mai 2011, 12:59:25 schrieb Huib Verweij:
Op 31 mei 2011, om 10:57 heeft Huib Verwey het volgende geschreven:
the GET query works!
But POST does not.
Just to be clear: all I did was add the two dependencies for basex and basex-api and " db = new JaxRxServer(); " in the java code. No configuration, nothing.
huib.