|
From: Pirri <pir...@gm...> - 2009-12-27 19:05:49
|
Hi everybody !
I'm trying to develop a SOAP Module for eXist under Delphi 7
It works all fine, but only have a problem with Xquery SOAP procedure.
When I call xquery, it show this error "Element does not contain a single
text node" ("Project Pexist.exe raised exception class EXMLDocError with
message 'Element does not contain a single text node'. Process stopped.")
The code in delphi is simple.
var
query_a: xqueryResponse;
pquery:xquery;
D: TByteDynArray;
Begin
//declare the query
pquery := xquery.Create;
pquery.sessionId := sesion.connectReturn;
//text query from a memo
SetLength(d, Length(memo2.Text));
Move(memo2.Text[1], d[0], Length(memo2.Text));
pquery.xquery := D;
Query_a := (htt as QuerySoap).xquery(pquery); <-- This line produce the
error
Can U explain me why it doesn't work?
The xquery is
for $b in collection(/db/col1/intro)
where $b//codec = '1234NNN'
return $b//name
it work fine with sandbox.xql
Thanks a lot.
|