Accessing Web Service through HTTP Proxy
-
Hi guys,
I have created a Web Service called BugReporterService and hosted on a machine let's say MAC1 with a Live IP address 203.124.147.42
I have a windows client created in C# which accesses this Web Service and calls its method through a Proxy class which is generated via the Visual Studio.NET IDE.
Now, my problem is that, when this client application runs on a machine that can access Internet via Proxy Server only, It cannot access the Web Service class. If the access is without the HTTP Proxy Server to the internet, then it works fine.
How can I specify programmatically the IP Address/Name of the HTTP Proxy server (say 192.168.0.11) and its username and password. I initially thought that the application would take these settings from the Internet Explorer as lots of other applications do. But it's not wkg that way.
plz get back to me whoever finds out the Answer! I'll be grateful!
Thanx!
Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd. -
Hi guys,
I have created a Web Service called BugReporterService and hosted on a machine let's say MAC1 with a Live IP address 203.124.147.42
I have a windows client created in C# which accesses this Web Service and calls its method through a Proxy class which is generated via the Visual Studio.NET IDE.
Now, my problem is that, when this client application runs on a machine that can access Internet via Proxy Server only, It cannot access the Web Service class. If the access is without the HTTP Proxy Server to the internet, then it works fine.
How can I specify programmatically the IP Address/Name of the HTTP Proxy server (say 192.168.0.11) and its username and password. I initially thought that the application would take these settings from the Internet Explorer as lots of other applications do. But it's not wkg that way.
plz get back to me whoever finds out the Answer! I'll be grateful!
Thanx!
Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd. -
If you use the HttpWebRequest class under the Proxy property you can find Credentials.GetCredential(..params..).Password or .UserName
Hi there,
In fact I was asking abt the Web Proxy Implementation in the Proxy class generated for WebService. HttpWebRequest is not coing into picture!
Still, I got a hint from ur mail and I checked out a property called Proxy directly for theSoapHttpClientProtocol
class.
Thanx a lot anyways!
Atul Kale MCSD, MCT Sr. Software Engineer XcelVision Technologies Ltd.