Trouble accessing Web Services when behind proxy

Joi

New member
Joined
Feb 21, 2005
Messages
1
Programming Experience
3-5
Hi,

Any suggestions on how to access the web service whilst behind a proxy on the client?

I use windows authentication and https on the web service. from my client i have no trouble connecting and using the web service when not behind a proxy. But with a proxy, I get the following:

"The request failed with HTTP status 401: Unauthorized."

I use a proxy as follows:

...

Dim objProxy As IWebProxy = New WebProxy(Settings.ProxyAddress, Settings.ProxyPort)
Dim ProxyAuth As Boolean = Settings.ProxyAuth

If ProxyAuth = True Then

Dim ProxyCred As New NetworkCredential(Settings.ProxyUsername, Settings.ProxyPassword)

objProxy.Credentials = ProxyCred

End If

srvCurrency.Proxy = objProxy

...

When accessing a web page with https and windows authentication this works, but not when I'm trying against a web service.

Any ideas?
 
Back
Top