【发布时间】:2010-06-28 06:15:52
【问题描述】:
我正在尝试使用 Jmeter 测试 Web 服务。 Web 服务受 NTLM 身份验证(Windows)的保护。我可以使用WebService(SOAP) Request 采样器加载 WSDL。
目前,它仅在我将代理服务器与此 SO answer 中提到的 BurpSuit 一起使用时才有效(而不是 SOUP UI,我将 Jmeter 与 BurpSuite 一起使用)。
但我不想使用代理服务器,而是直接在 Jmeter 中使用带有 NTLM 身份验证的 Web 服务。我已经尝试过 HTTP Authentication Manager 和 ntlm 身份验证。但它仍然在回复中给出401 Authorization Required
感谢您的帮助。
采样器结果。
Thread Name: WebSVC 1-1
Sample Start: 2010-06-28 13:54:08 IST
Load time: 752
Latency: 0
Size in bytes: 401
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK
Response headers:
Date=Mon, 28 Jun 2010 08:24:08 GMT
Server=Apache/2.2.9 (Unix) DAV/2 mod_jk/1.2.26
Connection=close
WWW-Authenticate=NTLM
SampleResult fields:
ContentType: text/html; charset=iso-8859-1
DataEncoding: iso-8859-1
和回应
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
【问题讨论】:
标签: authentication web-services ntlm jmeter