安全web服务(NTLM) - 的JMeter [英] Secure Webservice (NTLM) - Jmeter

查看:326
本文介绍了安全web服务(NTLM) - 的JMeter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想测试使用JMeter的Web服务。 Web服务与NTLM身份验证(视窗)保护的。我可以能够使用WSDL 的WebService(SOAP)请求采样加载。
目前,它的工作原理,只有当我使用代理服务器与本<一提到BurpSuit href=\"http://stackoverflow.com/questions/914899/testing-webservice-with-soapui-windows-authentication\">SO回答(而不是汤UI的,我利用JMeter与BurpSuite)。

而是使用代理服务器,我想直接在JMeter中使用Web服务使用NTLM authentication.I've已经尝试过 HTTP验证管理器与NTLM身份验证。但它仍然给了 401需要授权在响应

感谢您的帮助。

样的结果。

 主题名称:​​WebSVC 1-1
采样开始:2010-06-28 13点54分08秒IST
加载时间:752
延迟:0
大小的字节数:401
采样数量:1
错误计数:0
响应code:200
响应消息:OK响应报头:
日期=星期一,2010年6月28日8时24分08秒GMT
服务器=的Apache / 2.2.9(UNIX)DAV / 2的mod_jk / 1.2.26
连接=关闭
WWW验证= NTLM
SampleResult字段:
的ContentType:text / html的;字符集= ISO-8859-1
DataEncoding:ISO-8859-1

和响应

 &LT;!DOCTYPE HTML PUBLIC -  // IETF // DTD HTML 2.0 // ENGT&;
&LT; HTML和GT;&LT; HEAD&GT;
&LT;标题&GT; 401需要授权&LT; /标题&GT;
&LT; /头&GT;&LT;身体GT;
&LT; H1&GT;需要授权&LT; / H1&GT;
&LT; P&gt;这服务器无法验证您
被授权访问文档
请求。要么你提供了错误
凭据(例如,错误的密码),或
浏览器不知道如何提供
所需的凭证&LT; / P&GT;
&LT; /身体GT;&LT; / HTML&GT;


解决方案

我设法得到它的工作使用 SOAP / XML-RPC请求采样 使用KEEPALIVE 启用(Ofcourse与 HTTP验证管理器

的帮助选项

I am trying to test a web service with Jmeter. The web service is protected with NTLM authentication(windows).I can able to load WSDL using WebService(SOAP) Request sampler. Currently it works only when I use proxy server with BurpSuit mentioned in this SO answer(Instead of SOUP UI, I'm using Jmeter with BurpSuite).

But Instead of using a proxy server,I would like to use a web service directly in Jmeter with NTLM authentication.I've already tried HTTP Authentication Manager with ntlm authentication. But still it gives 401 Authorization Required in a response

Thanks for the help.

Sampler result.

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

and Response

<!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>

解决方案

I managed to get it worked using SOAP/XML-RPC Request Sampler with Use keepAlive option enabled( Ofcourse with the help of HTTP Authentication Manager.

这篇关于安全web服务(NTLM) - 的JMeter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆