5

I'm trying to consume a java web service using basic authentication.

Using Soap UI I can receive a response when running a request with basic authentication.

The problem is using VS studio i'm having this error using basic authentification

"The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic realm='weblogic'

enter code here

<security mode="TransportCredentialOnly">
  <transport clientCredentialType="Basic" proxyCredentialType="None" realm="" />
  <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
Codor
  • 17,447
  • 9
  • 29
  • 56

1 Answers1

0

Your transport configuration specifies an empty realm while the server users weblogic. Try adding the same realm you used with SoapUI, eg:

<transport clientCredentialType="Basic" proxyCredentialType="None" realm="weblogic" />
Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236