RE: WebService Client not authenticating through Proxy Server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JD (jdonnici_at_nospam.nospam)
Date: 10/04/04


Date: Mon, 4 Oct 2004 12:37:03 -0700

Hi Lalitha,

Thanks for pointing me to those articles. Our Winforms/desktop app doesn't
ship with a machine.config, as suggested in KB 318140. I suppose it's
conceivable we could put one on the user's machine, but that may mess up any
existing one they already have where the framework is installed.

That same KB article offers a code snippet that it says is supposed to do
the same thing as the machine.config approach. The problem is that the code
snippet requires that the URL of the proxy server be specified.

If we can possibly help it, we'd like to avoid needing the user to specify
their proxy server address/port. Do you know if there's an equivalent in code
to the machine.config approach (below), which essentially says "use the
system settings, period"?

   <system.net>
      <defaultProxy>
         <proxy
            usesystemdefault = "true"
         />
      </defaultProxy>
   </system.net>

We've been unable to find something that does essentially this via code as
most examples suggest the specify-an-address approach:

IWebProxy proxyObject = new WebProxy("http://myproxyserver:80", true);

Thanks for any assistance you can provide,

Jeff

"Lalitha" wrote:

> Hi JD,
> When you browse the Web service in IE it will be making Http Get and Http
> Post calls so this will work even you have proxy server setting. When you
> call the web service from client then it will be making Soap calls. You
> need to make changes in machine.config. Check the following articles:
> 318140 PRB: Error on .NET client that consumes a Web service through an HTTP
> http://support.microsoft.com/?id=318140
> 307220 HOW TO: Configure an XML Web Service Client by Using the .NET
> Framework
> http://support.microsoft.com/?id=307220
> Hope this will resolve your issue.
> Thank you, Lalitha
> Microsoft, Distributed services
>
> This posting is provided "AS IS", with no warranties, and confers no rights.
>
>



Relevant Pages

  • Re: ActiveX CAB Problems
    ... Hmm... ... it looks as if some of the articles I was thinking about ... specify that or even which version of Windows Update it is referring to ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Did native Americans cultivate Lime tree?
    ... > i meddelandet ... >> Please specify. ... > That part will be in one of my articles. ...
    (sci.archaeology)
  • Re: Snapshot Repl. Failing with Foreign Key Constraints
    ... includes stored proc. ... I have tried to specify that the stored procs are kept and receive the ... > When you are specifying your articles, click on the browse button to the ... > Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.replication)
  • Re: container - browse to file - set location
    ... You're free to specify the "no archive" bit of course, ... with you that real names and email addresses are worth the spam risk. ... I want to keep control myself about articles that I ... But Google or Microsoft shall not profit forever from ...
    (comp.databases.filemaker)
  • Re: Outlook over http
    ... to have exchange functionality. ... Currently they use OWA with SSL. ... We only have 1 exchange server, no proxy server. ... I'm not sure what articles you're looking at, but RPC over HTTP uses SSL - ...
    (microsoft.public.exchange.admin)