WebService Setting Credentials

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bob1
    New Member
    • Dec 2007
    • 1

    #1

    WebService Setting Credentials

    Hi all,

    I have a situation where I have a client calling into a webservice.
    I am trying to change the security context of the client before I make the call to the webservice.

    I've got something really simple like the following on the client:
    // The Webservice
    HelloServer.Ser vice1 service = new Service1();
    NetworkCredenti al testCredential = new NetworkCredenti al("testUser", "Password", "DOMAIN");
    service.Credent ials = testCredential;
    service.HelloWo rld();

    However on the server side when I am debugging the security context of the following object:
    User.Identity
    It always turns out to be my windows integrated login rather than the NetworkCredenti al specified.

    Why are these credentials not being passed throught to the web service?

    Cheers for any insight into the problem.
Working...