Windows WCF client can't authenticate with internet proxy server

Please support our RSS, Web Services and SOAP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Jun 2008
Posts: 1
Reputation: PeterTuffin is an unknown quantity at this point 
Solved Threads: 0
PeterTuffin PeterTuffin is offline Offline
Newbie Poster

Windows WCF client can't authenticate with internet proxy server

 
0
  #1
19 Days Ago
I have written a WCF client which consumes a 3rd party web service.

I used the Visual Studio "Add Service Reference" wizard, and have used the code that it created without a hitch. It is great.

Once I had my client tested on my own development PC and then again on another PC (where internet access is different), I started deploying my WCF client to customers. It is now installed at over 20 sites and working well.

Except: at the latest customer, it will not work because their internet connection is set up to access the internet via a proxy server, and my WCF client fails with status 407.

Now, I know what the proxy server's IP address is, and the user name and password needed to authenticate to it. What I don't know is how I provide those three things to WCF so that it will authenticate with the proxy server for me.

I have tried using
RSS, Web Services and SOAP Syntax (Toggle Plain Text)
  1. MyWcfClient.ClientCredentials.UserName.UserName = proxyUsername;
  2. MyWcfClient.ClientCredentials.UserName.Password = proxyPassword;

But that doesn't help.

I have searched around various forums for answers to this problem, and have tried some of the suggested solutions, but they seem to revolve around Windows authentication, and seem to be very, very complicated. And my application isn't really all that complicated - as I said above, it works with just the straight code as generated by the VS Service Reference wizard.

How can I specify the proxy's IP address, user name and password so that WCF will authenticate with the proxy for me?
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC