35
Views
0
Comments
Soap consume with Digest authentication

Hi everyone,

I need to call a Soap WebService with the authentication type Digest but I don't find any way to do that


When I try to call the webservice, I get the following error:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Digest realm="Xatlas", qop="auth", nonce=...


 If I try with basic authentication, I get the same error, but this time regarding basic authentication.

The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Digest realm="Xatlas", qop="auth", nonce=...


I read that the digest authentication works with 2 send requests:

with the first request, it gets the response with the error and in the response header, we get all the information about the digest auth cause we need to set the request header for sending the second request.

from this source: https://smartbear.com/blog/how-to-use-digest-http-authentication-in-soapui/



I am trying to do that using the action

GetSOAPHeaders_FromResponse from the extension SOAPExtensibility

but I received this error:

There are no available response SOAP headers from the last invoked SOAP method. Make sure you're calling the �RegisterInspectHeaders� action in the �OnBeforeRequestAdvanced� callback of the desired SOAP Web Service.


If I try to use GetSOAPHeaders_FromRequest it works well but I need the headers from the response.


below are the actions:

Has anyone encountered the same issue?


Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.