RE: WebService Client not authenticating through Proxy Server
From: JD (jdonnici_at_nospam.nospam)
Date: 10/04/04
- Next message: tom wisnowski: "RE: Serialize complex type element with simple content"
- Previous message: Patrick: "Re: Using Policy with WSE2.0 (From WSE Drilldown examples)"
- In reply to: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Next in thread: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Reply: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Messages sorted by: [ date ] [ thread ]
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.
>
>
- Next message: tom wisnowski: "RE: Serialize complex type element with simple content"
- Previous message: Patrick: "Re: Using Policy with WSE2.0 (From WSE Drilldown examples)"
- In reply to: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Next in thread: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Reply: Lalitha: "RE: WebService Client not authenticating through Proxy Server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|