SOAP UI - 无法验证 REST API
SOAP UI - Not able to authenticate REST API
我正在尝试请求来自以下 REST 的响应 API
Request - POST
URL - http://auldslap540.sit.biz:9189/ws/Retrieve-RequestSummary/1.0
通过的 headers 是(我从日志中得到这些调试信息):
SOAPAction: retrieveSummary
User-Agent: Axis2
Content-Type: text/xml; charset=UTF-8
身份验证是 Basic
并通过 username/password
传递 XML 请求,响应为:
DEBUG: Attempt 1 to execute request
DEBUG:Sending request: POST /ws/Retrieve-RequestSummary/1.0 HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
DEBUG:Connection can be kept indefinitely
DEBUG:Target requested authentication
DEBUG:Authorization challenge processed
DEBUG:Authentication scope: BASIC <any realm> @auldslap540.sit.biz:9189
DEBUG:auldslap540.sit.biz:9189 requires authentication with the realm 'null'
DEBUG:Found credentials
DEBUG:Attempt 2 to execute request
DEBUG:Sending request: POST /ws/Retrieve-RequestSummary/1.0 HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
DEBUG:Connection can be kept indefinitely
DEBUG:Target requested authentication
DEBUG:Authorization challenge processed
DEBUG:Authentication scope: BASIC <any realm> @auldslap540.sit.biz:9189
DEBUG:Authentication failed
DEBUG:Connection closed
根据日志,Java 代码运行良好。但是从 SOAP UI,我得到了上面的错误。
如有任何帮助,我们将不胜感激。
问候
R
您是否尝试将身份验证类型从 Basic 更改为 NTLM。如果没有,请尝试一次。
此外,如果您没有在 Rest API 的 Rest Request 测试用例步骤中指定登录凭据,请尝试在 Rest Request 步骤中也指定登录凭据。
我正在尝试请求来自以下 REST 的响应 API
Request - POST
URL - http://auldslap540.sit.biz:9189/ws/Retrieve-RequestSummary/1.0
通过的 headers 是(我从日志中得到这些调试信息):
SOAPAction: retrieveSummary
User-Agent: Axis2
Content-Type: text/xml; charset=UTF-8
身份验证是 Basic
并通过 username/password
传递 XML 请求,响应为:
DEBUG: Attempt 1 to execute request
DEBUG:Sending request: POST /ws/Retrieve-RequestSummary/1.0 HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
DEBUG:Connection can be kept indefinitely
DEBUG:Target requested authentication
DEBUG:Authorization challenge processed
DEBUG:Authentication scope: BASIC <any realm> @auldslap540.sit.biz:9189
DEBUG:auldslap540.sit.biz:9189 requires authentication with the realm 'null'
DEBUG:Found credentials
DEBUG:Attempt 2 to execute request
DEBUG:Sending request: POST /ws/Retrieve-RequestSummary/1.0 HTTP/1.1
DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
DEBUG:Connection can be kept indefinitely
DEBUG:Target requested authentication
DEBUG:Authorization challenge processed
DEBUG:Authentication scope: BASIC <any realm> @auldslap540.sit.biz:9189
DEBUG:Authentication failed
DEBUG:Connection closed
根据日志,Java 代码运行良好。但是从 SOAP UI,我得到了上面的错误。
如有任何帮助,我们将不胜感激。
问候 R
您是否尝试将身份验证类型从 Basic 更改为 NTLM。如果没有,请尝试一次。
此外,如果您没有在 Rest API 的 Rest Request 测试用例步骤中指定登录凭据,请尝试在 Rest Request 步骤中也指定登录凭据。