2
votes

I'm using Apache JMeter 2.11 to test a web service with authentication. For the sample request I'm using View Results Tree as a listener and a SOAP/XML-RPC Request with the following syntax to my parameters:

What I have tried

1) Adding an HTTP Header Manager using

  • Name: Authorization:
  • Value: Basic [Base64 code encoded in ASCII, UTF-8, with or without domain in the user name] as explained here

With result: Response headers: HTTP/1.1 401 Unauthorized

2) Adding an HTTP Authorization Manager using

  • Base URL: http://www.domain.com:####
  • Username: [USERNAME]
  • Password: [PASSWORD]
  • Domain: [DOMAIN]
  • Realm: [NULL]
  • Mechanism: [BASIC_DIGEST/KERBEROS] as explained here

With result: Response headers: HTTP/1.1 401 Unauthorized

I also tried enabling Keep Alive in the request as suggested here

What am I doing wrong?

1
any feedback ? if ok you should accept it and upvote, thxUBIK LOAD PACK

1 Answers

2
votes

First you need to know the auth type, is it basic ? Digest ? Kerberos or other ?

Second, don't use SOAP/XML-RPC Request, use Http Request,

See Templates > Webservice in jmeter menu, it creates a sample test plan for Soap testing.

Add then your authentication with the correct Auth Manager using HttpClient 4 as sampler implementation and check.