Hi Dermot,
Without seeing the code you are using to set up the web service proxy's
HTTP connection's proxy server setting, it's hard to say what's what. In
general, however code such as the following will be something to consider
if you aren't already there...
myproxy.v1 serviceProxy = new myproxy.v1();
serviceProxy.Proxy = new System.Net.WebProxy("proxyURL", true);
There are several overloads to the WebProxy constuctor.
The first line represents instantiation of my web service proxy that I
generated by adding a web reference to my project.
The second line represents setting the HTTP proxy settings for the proxy
server. I used a two argument flavor that would make the call with the
current user credentials, and let me specify the URI for the proxy server,
and to bypass the proxy server for resolving local intranet requests.
There are also overloads that let you explicitely pass a credential object
that you would have to create yourself at runtime).
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
>From: (Dermot O'Loughlin)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Problem accessing WebService through Proxy Server
>Date: 1 Dec 2004 09:31:11 -0800
>Organization: http://groups.google.com
>Lines: 22
>Message-ID: < >
>NNTP-Posting-Host: 83.70.155.58
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1101922272 24798 127.0.0.1 (1 Dec 2004
17:31:12 GMT)
>X-Complaints-To: groups-
>NNTP-Posting-Date: Wed, 1 Dec 2004 17:31:12 +0000 (UTC)
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!cpmsftn gxa06.phx.gbl!TK2MSFTNGP08
phx.gbl!news-out.cwix.com!newsfeed.cwix.com!prodigy.com!news.gl orb.com!post
news.google.com!not-for-mail
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:26940
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>I get the following error when trying to access a Webservice through
>my proxy server. I know that the authentication credentials are
>correct because if i use an incorrect username I get a message saying
>that i can't be authenticated. I can't understand why I get a timeout.
>
>Any help much appreciated.
>
>
>System.Net.WebException: The request failed with HTTP status 504:
>Proxy Timeout ( Connection timed out. For more information about this
>event, see ISA Server Help. ).
> at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClient
Message
>message, WebResponse response, Stream responseStream, Boolean
>asyncCall)
> at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
>methodName, Object[] parameters)
> at b2m.B2M_MessageSenderService.login(String account, String
>login4, String password) in c:\documents and settings\doloughlin\my
>documents\visual studio
>projects\sms\b2mlibrary\b2m_messagesenderservice. cs:line 191
> at SendSMS.SendSMSService.SendSMS(String numbers, String message)
>in c:\inetpub\wwwroot\sendsms\sendsmsservice.asmx.cs: line 87
>