473,503 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

proxy support

We have a c# webform application that uses ASP.NET webservices to
communicate with our IIS server over the public internet. The customer is
complaining that our application is using their default gateway to
communicate rather than their proxy server. I was under the impression that
the SoapHttpClientProtocol framework class used Internet Explorer's settings
for proxy server configuration/usage and asked the customer to make sure
I.E. was configured for use with their proxy server. He said I.E. was
configured as such but that our application still was using their default
gateway for web service communications over the public internet. My
question is:

1. Is there some way programatically to force a web service client to use a
proxy server instead of default gateway?

2. Do I need to edit some .net configuration file to force the proxy server
to be used by the SoapHttpClientProtocol framework class.

thanks

scott
Nov 23 '05 #1
1 1342
On Tue, 1 Feb 2005 11:04:45 -0600, Scott wrote:
We have a c# webform application that uses ASP.NET webservices to
communicate with our IIS server over the public internet. The customer is
complaining that our application is using their default gateway to
communicate rather than their proxy server. I was under the impression that
the SoapHttpClientProtocol framework class used Internet Explorer's settings
for proxy server configuration/usage and asked the customer to make sure
I.E. was configured for use with their proxy server. He said I.E. was
configured as such but that our application still was using their default
gateway for web service communications over the public internet. My
question is:

1. Is there some way programatically to force a web service client to use a
proxy server instead of default gateway?

2. Do I need to edit some .net configuration file to force the proxy server
to be used by the SoapHttpClientProtocol framework class.


Have you tried myClient.Proxy = WebProxy.GetDefaultProxy()? That won't
work if the IE proxy settings are dynamic, generated from script, from
autoconfig entries or from DHCP or DNS lookups. If that's the case, create
your own instance of WebProxy and set the appropriate values.
--
Tom Porterfield
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12632
by: Woogie | last post by:
When running the sample code below without a proxy the GET returns the expected data. When run with the $proxy uncommented the GET returns the content of the login page for the site being...
3
2193
by: Soul | last post by:
Hi, I am learning to code a WinForm application which will need to access a Web Service outside the University network. Our University require us to go through a proxy in order to access the...
9
3441
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script....
9
3182
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
2
9407
by: master | last post by:
Hi, I was using the FtpWebRequest class in .NET 2.0 for an FTP transport over SSL. It is working well, however the new requirement for my application is to tranfer files via an HTTP proxy. The...
2
7446
by: sck10 | last post by:
Hello, How do you set the website proxy using the XmlDataSource control? Thanks, sck10
3
4732
by: | last post by:
Hi, We have .NET 1.1 WinForms apps accessing webservices through proxy servers in various companies using different proxy server setups. Our WinForms app is currently configurable to either use...
1
4978
by: =?Utf-8?B?Z2FsbGFu?= | last post by:
We have an application that is running fine on several of our customer’s servers. However, one of our customers is having a problem running the application. The application works on one of his...
4
4449
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
2
2909
by: | last post by:
Hi all, I have an asp.net 2.0 website that accesses a locally hosted web service. This works fine on servers that are connected to our network. However, I am having a problem with a laptop...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.