我在SOAPUI工具中调用以下Rest服务时收到以下错误:
http://localhost:7060/v1/transactions
Error :
HTTP/1.1 401 Unauthorized
Server: MarkLogic
WWW-Authenticate: Basic realm=public
Content-Type: application/json; charset=utf-8
Content-Length: 104
Connection: Keep-Alive
Keep-Alive: timeout=5
{"errorResponse": {"statusCode":401,
"status":"Unauthorized",
"message":"401 Unauthorized"
}
}
在浏览了以下链接之后,我认为它与Content-Type有关,我尝试使用text / plain,但它仍然无法正常工作,围绕它有什么帮助吗?
答案 0 :(得分:0)
尝试将管理控制台中MarkLogic REST API服务器中的身份验证设置更改为“digestbasic”,并在REST客户端中使用HTTP Basic Auth(“Basic {TOKEN}”)以确保{{1}中的登录凭据标题是正确的。