While I'm executing the below code in the Query console I'm getting an "XDMP-INVAUTHMETH" error. We are using the authentication method at the application level in the HTTP app server. please help me resolve this issue.
xquery version "1.0-ml";
xdmp:http-put("http://example.com:8016/v1/documents?uri=my.xml",
<options xmlns="xdmp:http">
<authentication method="application-level">
<username>xxxx</username>
<password>yyyyy</password>
</authentication>
<headers>
<Content-type>application/xml</Content-type>
<Accept>application/xml</Accept>
</headers>
</options>,
<mydata>this is xml for the PUT body</mydata>)
Error:
[1.0-ml] XDMP-INVAUTHMETH: xdmp:http-put("http://example.com:8016/v1/documents?uri=my.xml", ......, this is xml for the PUT body) -- Invalid authorization method: application-level