Service service=new Service();
service.url="http://your.url.here";;
service.PreAuthenticate=true;
service.Credentials=new System.Net.NetworkCredential("uname", "password",
"domain.name.here");

-----Original Message-----
From: Paul Callahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 10:50 AM
To: [EMAIL PROTECTED]
Subject: Re: how to set the usename and passwork in C#


You should look in the generated proxy for the service in VS.NET... 
There you can override the GetWebRequest method, and use
request.Headers.Add method in order to add headers before returning
the request.

-pc


On Thu, 7 Oct 2004 12:52:44 +0800 (CST), ïffffffffffd3ïffffffffffc2
ïffffffffffccïffffffffffc 6?= <[EMAIL PROTECTED]> wrote:
> Hi everyone.
> I set the username and password of
> org.apache.axis.client.Stub to auditing a client
> connection of webservice built by Axis. It is work in
> java. Following is my code:
> IssueWsSoapBindingStub binding = null;
> binding = (IssueWsSoapBindingStub)new
> IssueWSServiceLocator().getissueWs();
> binding.setUsername("admin");
> binding.setPassword("admin");
> 
> But I don't know how to send the usename and password
> from C# client to the Web Services.
> 
> How to do it?
> 
> _________________________________________________________
> Do You Yahoo!?
> 150äæMP3ççæïåæéåéäæå
> http://cn.rd.yahoo.com/mail_cn/tag/yisou/music/*http://music.yisou.com/
> çåææåæåæïæéçåãèååéå
> http://cn.rd.yahoo.com/mail_cn/tag/yisou/image/*http://image.yisou.com
> 1Gåæ1000åïéèçéèåæåï
>
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1
g/
>

This email message and any attachments are confidential to Endeca. If you
are not the intended recipient, please notify Endeca immediately -- by
replying to this message or by sending an email to: [EMAIL PROTECTED] -- and
destroy all copies of this message and any attachments. Thank you.

Reply via email to