Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call WebService over https via proxy...

Status
Not open for further replies.

koraykazgan

Programmer
Jan 11, 2005
17
0
0
DE
Hi all,

I have written an ASP.Net 2.0 Web Project Application, which is consuming a Web Service of a company. The first method will be called over https, because its the authentification method. All other methods are called over http.

On my local computer, where I have direct access to the internet, everything is working fine. But after I have published the application to the server, which is in DMZ, I had problems. First I noticed, that I can't even reach from the browser on that computer. So I spoke with my system admin, and he has configured a proxy, where I can get out to the net over port 8080 instead of 80.

I have to enter the proxy settings in the browser and am able to reach websites from the browser.

But now, my application can reach the WebService, because it doesn't know, that it have to go outside using port 8080, instead of 80. After googling a bit I found out. I had to create a WebProxy instance and pass it to the web service. Here is the code, how I am creating that object:

WebProxy proxy = new WebProxy(" true);

With this code, I can reach all http methods of the web service. So my question is how I would use the WebProxy object for https?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top