none
Trying to consume a web service but I get "The HTTP request is unauthorized with client authentication scheme 'Anonymous'..." RRS feed

  • Question

  • I'm trying to consume a web service and this is how far I got in the client code:

    InformationServiceReference.PartnerInfoServicePortClient pbs = new InformationServiceReference.PartnerInfoServicePortClient();
    pbs.ClientCredentials.UserName.UserName = "Username";
    pbs.ClientCredentials.UserName.Password = "Password";
                      
    raceDayCalendarSimple.InnerHtml = Convert.ToString(pbs.fetchRaceDayCalendarSimple().raceDay);
    
    

    Then I get the error:

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

    What could be wrong?

    I've got username and password from the people behind the service, and I suppose it doesn't have anything to do with username or password being wrong.

    Sunday, June 1, 2014 5:29 PM

Answers

All replies