CodeSmith Community
Your Code. Your Way. Faster!

WebServiceClient and Proxy Servers

Latest post 05-01-2008 10:20 AM by Eric. 0 replies.
  • 05-01-2008 10:20 AM

    • Eric
    • Top 200 Contributor
    • Joined on 02-16-2006
    • Posts 25
    • Points 580

    WebServiceClient and Proxy Servers

    Would anyone happen to know if proxy servers are handled automatically by the current webservices code?

    I read in several places that a client app written in .Net 2.0 that uses web services will automatically use the default proxy server settings but I can't seem to confirm this.

    In the WebCerviceClient if I add:

    proxy.Proxy = WebRequest.DefaultWebProxy;
    proxy.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials;

    It doesn't seem to have any effect on the actual connection. I created a bogus proxy server (via I.E.) and it still connects fine.
    If I leave this code out proxy.Proxy remains null--so it doesn't look like it reads the default proxy setting automatically.

    Is anyone out there using the WebServiceClient behind a proxy server?
    Does it require additional configuration in your application in order to work?

    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems