Testerone
Testerone

Reputation: 63

SOAP request through JMeter with authentication

I'm having trouble sending a JMeter SOAP request through HTTP Request element - Through SOAPUI I'm sending the request with the following properties:

Authentication via SOAP

But I cannot receive a valid response when I try to add these username password. I've tried to place it in HTTP Header Manager/ in HTTP Authorization Manager, but with no luck. I receive either error:

Response code: 404 Response message: Not Found

when placing this in the HTTP Authorization Manager and

HTTP Error 400. The request has an invalid header name

when placing the username and password in the header manager (with wss password type field, while in HTTP Authorization Manager there is not option like this).

What can I do to have a valid response from the server like I get in SOAPUI?

Upvotes: 0

Views: 3288

Answers (1)

Dmitri T
Dmitri T

Reputation: 168197

If you need to replicate SoapUI request I would suggest just to record the request from the SoapUI via JMeter HTTP(S) Test Script Recorder

  1. In JMeter

    • File -> Template -> Recording -> Create
    • Workbench -> HTTP(S) Test Script Recorder -> Start
  2. In SoapUI

    • File -> Preferences -> Proxy Settings
    • Host: localhost, Port: 8888
  3. Enable proxy in SoapUI

  4. Execute your request
  5. Expand Thread Group -> Recording Controller in JMeter and observe the recorded request.

JMeter Record SoapUI request

You may also need to correlate timestamps using __time() function check out Take the Pain out of Load Testing Secure Web Services for details on bypassing different web services security in JMeter tests.

Upvotes: 1

Related Questions