Passing credentials across 2 webservice

P

prakashsha

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..???
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top