Hi,
   I am using xdmp:http-get method to make a call to a webservice. When I am
passing the header information as part of the options tag getting the error
"XDMP-NOTSIMPLE". Can anyone kindly let me know why this is occuring. Find
below the mock code that I am using.

let $url := url of the service with query params
let $options := <options xmlns="xdmp:http">
                        <timeout>30</timeout>
                        <format xmlns="xdmp:document-get">xml</format>
                        <authentication>
                          <username>uid</username>
                          <password>pwd</password>
                        </authentication>
                        <headers xmlns="xdmp:http">
                            <Accept-Language>en-us</Accept-Language>
                            <Accept-Encoding>gzip, deflate</Accept-Encoding>
                            <Accept>application/atom+xml</Accept>
                            <other required headers>
                        </headers>
                     </options>
return xdmp:http-get($url, $options)

Thanks & Regards
Manoj
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to