Hello,

I found some problems to run a remote Xquery from mclient.
The query is the following (it works fine with the Java XRPC API but not with mclient).

mclient -lx -s "execute at {'192.168.0.12'} {pf:collections()}"

I get the following error.

user(win32):
password:
MAPI  = win32@localhost:50000
QUERY = execute at {'192.168.0.12'} {pf:collections()}
ERROR = !ERROR: interpret: no matching MIL operator to 'reverse(void)'.
        !MAYBE YOU MEAN:
        !       reverse(BAT[any::1,any::2]) : BAT[any::2,any::1]
        !ERROR: interpret_params: sort(param 1): evaluation error.
        !ERROR: interpret_params: reverse(param 1): evaluation error.

Did anyone had already successfully run such kind of query?

PS1: there are 2 Mserver running: one on the local host/one on the remote host.
The Java XRPC API does not need to run a Mserver on the local host, but mclient do (else I get a "initiating connection socket failed" error )

PS2:I have Mserver 4.39.0  on the remote linux server and Mserver 4.36.5 on the windows client (The query also fails with client/linux/4.39.0 & server/linux/4.39.0)

PS3: the default example provided in the XRPC doc fails (no MIL operator) the same way:
import module namespace test = "xrpc-test-function" at "http://192.168.0.12:50001/export/xrpc-mod.xq";
execute at {"192.168.0.12"} {test:add(100, 200)}

Regards
Ryad