It's in VB but you shouldn't have any problems with it. MSDN has some good
reading on NetworkCredential and the like.
Dim l As New localhost.MyWebService
Dim cred As System.Net.ICredentials 'Or networkcredentials, whatever you
prefer
cred = New System.Net.NetworkCredential(Me.txtUser.Text.Trim,
Me.txtPassword.Text.Trim)
l.Credentials = cred
dim SomValue as string = l.SomeService
"Old Man" <Ol*****@NursingHome.com> wrote in message
news:Xn**********************************@63.223.5 .246...
using c# in a windows application.
I am developing a webservice to run on our extranet SSL server. The
company policy is that this server log everybody in.
I am going to use the WSE security, but what is stoping me now is the
first
basic auth login handshake.
The webservice works on my dev box, but when i use the test tool I wrote
in
c# windows application it fails because it cant get to the webservice, it
is stopped at the Basic Auth.
I saw on the web where you can create a login object and attach it to the
webrequest object, webrequest is buried deep in the
System.Web.Services.Protocols and not available to me.
What can i do - is the only option that I have at present is build the
soap
packet myself and then use manual code to send it on to the webservice....
this is not a desirable option.