Passing credentials across 2 webservice

Discussion in 'ASP .Net Web Services' started by prakashsha, May 4, 2005.

  1. prakashsha

    prakashsha Guest

    I've 2 webservice. (webservice1, webservice2). and one winform..
    The winform calls the webservice1 as follows and sends teh currentLogon BY
    USING default credentials and it works fine.
    localhost.Service1 a = new localhost.Service1();
    a.Credentials = System.Net.CredentialCache.DefaultCredentials;
    MessageBox.Show(a.HelloWorld());
    when The webservice1 calls webservice2 with the following credentials. The
    credentials are not passed?
    localhost.Service2 ser = new localhost.Service2();
    ser.Credentials =
    System.Net.CredentialCache.DefaultCredentials;
    Instead of logon , I get empty values.. why the credentials are not passed
    across two webservice..???
    prakashsha, May 4, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U2lvYmhhbg==?=

    Persisting user login credentials across pages

    =?Utf-8?B?U2lvYmhhbg==?=, Feb 20, 2005, in forum: ASP .Net
    Replies:
    19
    Views:
    821
    =?Utf-8?B?U2lvYmhhbg==?=
    Feb 28, 2005
  2. Jay Balapa
    Replies:
    2
    Views:
    578
    =?Utf-8?B?TWFyYyBWZXJkaQ==?=
    Jun 26, 2006
  3. Eric
    Replies:
    1
    Views:
    147
    Dominick Baier [DevelopMentor]
    Apr 21, 2006
  4. Replies:
    1
    Views:
    107
    Dominick Baier [DevelopMentor]
    Jun 18, 2006
  5. Bil Simser [MVP]

    Credentials across multiple web service boundaries

    Bil Simser [MVP], Sep 4, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    107
    Bil Simser [MVP]
    Sep 4, 2004
Loading...

Share This Page