Base Authentication Info (User, Password) are not found in Request Header

Beantwortet Base Authentication Info (User, Password) are not found in Request Header

  • Montag, 13. Februar 2012 14:45
     
     

    I wrote a small Web Service Client. It runs correctly.

    Then, on the server's side, Base Authentication have been activated. I extended my Web service client with:

    MyService.ClientCredentials.UserName.UserName = "user_name_as_assigned";

    MyService.ClientCredentials.UserName.Password = "password_as_assigned";

    ... and changed a line in the app.config:

    <security mode="None">

      <transport clientCredentialType="Basic"...

    But, the client functions no more. After inspecting traffic between client and server, I found, that no user credentials are sent over wire.

    How to implement such a base authentication ? What changes are to be done if we switch a client, that operates without security to the base authentication ?         

Alle Antworten