Hi Will,

Have you tried using an HTTP client that supports sending multipart/mixed?
You should also be able to use form-data. That works in a similar way, and
you can test that with a HTML form with multiple file input fields. These
input fields should get translated to request-fields with file names
attached.

Cheers,
Geert

On 5/17/16, 8:09 PM, "[email protected] on behalf of
Will Thompson" <[email protected] on behalf of
[email protected]> wrote:

>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

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

Reply via email to