3

Jmeter で Web サービスをテストしようとしています。WebService(SOAP) RequestWeb サービスは NTLM 認証 (Windows) で保護されています。サンプラーを使用して WSDL を読み込むことができます。現在、このSO 回答に記載されている BurpSuit でプロキシ サーバーを使用している場合にのみ機能します(SOUP UI の代わりに、BurpSuite で Jmeter を使用しています)。

しかし、プロキシ サーバーを使用する代わりに、NTLM 認証を使用して Jmeter で Web サービスを直接使用したいと考えています。すでにHTTP Authentication Managerntlm 認証を試しました。しかし、それでも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>
4

3 に答える 3

3

オプションを有効にして(もちろんの助けを借りSOAP/XML-RPC Request Samplerて.Use keepAliveHTTP Authentication Manager

于 2010-07-09T06:58:54.447 に答える
2

セキュリティ パラメータをヘッダーに追加できます。

 <soapenv:Header>  <wsse:Security soapenv:mustUnderstand="1" 
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> 
         <wsse:UsernameToken> 
            <wsse:Username>USERNAME_PARAM</wsse:Username> 
            <wsse:Password 
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">PASSWORD_PARAM</wsse:Password> 
         </wsse:UsernameToken> 
      </wsse:Security> 

于 2012-07-26T12:24:34.417 に答える
0

HTTP 認証マネージャーで、「ベース URL」フィールドに値を指定していますか?
その場合、https ://${soap_domain} の形式ですか (安全な http に注意してください)。

認証失敗の問題にしばらく悩まされていましたが、簡単な回避策は、ベース URL フィールドを空のままにして、ユーザー名とパスワードのみを指定することであることがわかりました。

于 2010-07-08T21:28:54.080 に答える