Hi, I am using the release version of the .Net framework. I am attempting to invoke a Web Service through a Proxy by using System.Net.WebProxy. I modified the client code (generated by the wsdl executable) to use a WebProxy. However, the Proxy is not used and the Web Service is directly invoked. The code to set the Proxy seems to be ignored. Below is the constructor for the service containing the modified code:
public Service1() { this.Url = "http://localhost:8080/TestService1/Service1.asmx"; Uri siteUri = new Uri("http://localhost:8080/Test/Receiver.aspx"); WebProxy wp = new WebProxy(siteUri,false); this.Proxy = wp; } Notice, I set the "ByPassOnLocal" flag to false in the WebProxy constructor so that the Proxy should be used (local or not local). Do I have to modify the machine.config file to use System.Net.WebProxy? I modified the "defaultProxy" section of the machine.config file to look like this: <proxy usesystemdefault="false" /> <module type="System.Net.WebProxy, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> However, this does not work either? Any help would be appreciated. Thanks Victor Scott You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.