Proxy authentication required

  • Thread starter samy coco via .NET 247
  • Start date
S

samy coco via .NET 247

(Type your message here)

--------------------------------
From: samy coco

I have a windows application which invokes Web services:

WebReference1.myservice service = new WebReference1.myservice();
service.Url = "http://myurl.asmx";
service.MyMethod(string arg);

A client station using a Proxy server (ISA server) fails when calling the webservice .
The error message is :

(407) Proxy authentication required.

How to get the parameters(Password/UserName/Domain) that the user supplied to establishe a connection with the Proxy via his Internet Browser ?

Thanks Samy.
 
J

Jan Tielens

Check this KB:
http://support.microsoft.com/default.aspx?scid=kb;en-us;330221

Add this to the .config file:
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxyserver:port"
bypassonlocal="true"
/>
</defaultProxy>


OR do this in code:
Dim myProxy As New WebProxy("http://proxyserver:port", True)
myProxy.Credentials = New NetworkCredential("username", "password",
"domain")
Dim myFindService As New FindServiceSoap()
myFindService.Proxy = myProxy

--
Greetz,
Jan
________________________
Read my weblog: http://weblogs.asp.net/jan

samy coco via .NET 247 said:
(Type your message here)

--------------------------------
From: samy coco

I have a windows application which invokes Web services:

WebReference1.myservice service = new WebReference1.myservice();
service.Url = "http://myurl.asmx";
service.MyMethod(string arg);

A client station using a Proxy server (ISA server) fails when calling the webservice .
The error message is :

(407) Proxy authentication required.

How to get the parameters(Password/UserName/Domain) that the user supplied
to establishe a connection with the Proxy via his Internet Browser ?
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top