Hi Team,

I am making an http post call from xquery and this call returns a
multipart/mixed response.

Can anybody help on how to read the multipart response in x-query.

Also when i tried to read the multipart in the response, it is in the
binary form.

let $response := xdmp:http-post($uri,$options)
let $val := fn:data($response[2])
return if ($val instance of xs:hexBinary) then
              'hexbindary type'
         else 'unkonwn'

I am really not sure why it is coming as a binary data. how do i convert it
to a string in the x-query.

thanks.

Regards,
Sudheer
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to