Ask a Question related to ASP.NET Web Services, Design and Development.
-
oliver.wulff@zurich.ch #1
Basic Authentication, WebService
I did the following to add http basic authentication for calling a
webservice:
chz11086.HelloAuthTestService service = new
chz11086.HelloAuthTestService();
service.Credentials = new System.Net.NetworkCredential("oliver",
"oli");
service.Url="http://chz11086:10001/xmlbus/HelloAuthTest/HelloAuthTestService/HelloAuthTestPort/";
String retValue = service.hello("Oli from .NET");
But it fails. I've added an interceptor which dumps the whole soap request
and http headers. I'm missing the http header Authorization: BASIC: ......
What am I doing wrong?
Can I add an http header manually?
oliver.wulff@zurich.ch Guest
-
Basic authentication re-direct
Hello, I have basic authentication turned on for a directory. Is it possible to re-direct a failed login to another page? -- Thanks in... -
sso/basic authentication
We are interested in using basic authentication (with https) to implement Single Sign On (SSO) with Internet Explorer clients. Does anyone have... -
ASP.Net Forms authentication with basic authentication popup
Relatively new to ASP.Net but have a strange problem. My site uses forms authentication for a large administration section however after the user... -
Basic Access Authentication
I found this article http://www.dotnet247.com/247reference/msgs/22/113795.aspx, but unfortunatly it no longer exists here, so I'm re-opening it. ... -
Basic Authentication Logout
I have an app with basic authentication turned on. I want to have a logout button. What code do I need to supply in my asp.net to logoff the user... -
oliver.wulff@zurich.ch #2
Antwort: Re: Basic Authentication, WebService
Hi
my webservice is not running in IIS. To check if the authorization http
header has been added, the message is sent to a tcp monitor which
delegates the request to my webservice. Unfortunately, this header hasn't
been added by my .NET client. I've done the following:
String url = "http://chz11086:10001/xmlbus/berechtigung/Berechtigung_1_0Service/Berechtigung_1_0Porthttp://localhost:53205/xmlbus/berechtigung/Berechtigung_1_0Service/Berechtigung_1_0Port/";
chz110861.Berechtigung_1_0Service service = new
chz110861.Berechtigung_1_0Service();
service.PreAuthenticate = true;
NetworkCredential myCred = new NetworkCredential("cha3629","oli");
CredentialCache myCache = new CredentialCache();
myCache.Add(new Uri(service.Url), "Basic", myCred);
service.Credentials = myCache;
service.Url = url;
service.ping();
MessageBox.Show("Succeeded");
oliver.wulff@zurich.ch Guest
-
oliver.wulff@zurich.ch #3
Antwort: Re: Basic Authentication, WebService
No further ideas?
I've found similar requests in other newsgroups about this issue but there
was no reply. They used the same code as I do.
Is there a bug?
oliver.wulff@zurich.ch Guest



Reply With Quote

