Is there a recommended method of posting multiple documents to a ML endpoint in 
one request? Maybe this is a more general HTTP question, but I have tried 
several permutations of curl options, and unfortunately the only one that works 
on the ML side involves joining the documents together into a single payload 
with multiple root elements:

curl -u user:pass -k -X POST \
  -H "Content-Type: text/xml" \
  -d '<Document>Document 1</Document><Document>Document 2</Document>' \
  https://localhost:1234/my-endpoint

And in XQuery, the sequence of <Document> elements is retrieved by 
xdmp:get-request-body()/node(). But this can't be right, can it?

-Will
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to