in

CodeSmith Community

Your Code. Your Way. Faster!

WebServiceClient and Proxy Servers

Last post 05-01-2008 10:20 AM by Eric. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 05-01-2008 10:20 AM

    • Eric
    • Top 150 Contributor
    • Joined on 02-16-2006
    • Posts 24
    • Points 545

    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)
Copyright © 2007 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems