HighTechTalks DotNet Forums  

Re: WebException when accessing webservice via proxy

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Re: WebException when accessing webservice via proxy in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Javier G. Lozano
 
Posts: n/a

Default Re: WebException when accessing webservice via proxy - 03-15-2006 , 07:29 PM






I'm not sure if the proxy's request is capable of following the
redirect. What I'm guessing is that IE gets a redirect request and
handles it for you. Try connecting directly to the WEbServiceServer
and see if it works.

Why are you trying to redirect the request?


Reply With Quote
  #2  
Old   
Greg
 
Posts: n/a

Default Re: WebException when accessing webservice via proxy - 03-16-2006 , 02:15 AM






Hi Javier,

Quote:
I'm not sure if the proxy's request is capable of following the
redirect. What I'm guessing is that IE gets a redirect request and
handles it for you. Try connecting directly to the WEbServiceServer
and see if it works.
If the seetup the proxy correctly it will work. But this is not the senario
I'm iterested in.

Quote:
Why are you trying to redirect the request?
Our software should be able to handle this senario. We've got customers that
set up their proxies with mapped URLs.

Many thanks,
Greg.




Reply With Quote
  #3  
Old   
CaffieneRush (AT) gmail (DOT) com
 
Posts: n/a

Default Re: WebException when accessing webservice via proxy - 03-16-2006 , 06:28 PM



Hi,

The bottom of this article anticipates your scenario.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/Service08062002.asp

Good Luck.


Reply With Quote
  #4  
Old   
Greg
 
Posts: n/a

Default Re: WebException when accessing webservice via proxy - 03-17-2006 , 04:57 AM



Hi,

What the article describes breflly is the fact that we can trap the
exception and re-issue a new request to the new location.

This wouldn't work for 2 reasons:

1. Only the proxy server can access machines outside the firewall. So
re-issuing a new request to the machine outside the firewall wouldn't work.

2. The new location returned by HttpResponse.Headers["Location"] as
described in the article still points to the original location. So, there is
no way of getting the new location.

Many thanks,
Greg.



Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: WebException when accessing webservice via proxy - 03-18-2006 , 11:37 AM



In the absence of url mapping, how would the request go to the correct
host with the right service behind the firewall? ...I'm assuming that
the proxy/gateway would managing and forwarding the request to the host
behind the firewall.

What happens when the consumer of the web service makes a request
directly to the real url of the web service using the proxy?
So in your example:

myWebService ws= new myWebService();
ws.Url = "http://WebServiceServer/VirtualFolder/SomeWebService.asmx";
ws.Proxy = new WebProxy("proxyServer", 8081);
ws.Method1();


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.