Hi Niklesh,
You need to set the proxy property on the web service proxy class that you
generated with add-web-refernce. That takes a proxy class as follows:
wsp webserviceproxy = new wsp(); /// whatever you called your web service
proxy;
if (mySettings.NeedToUseProxyServer == true)
webserviceproxy.proxy = new WebProxy();
This should make it take the defaults you set up in your machine config.
Alternately, you can set the name of the proxy server and credentials
directly on the WebProxy constructor if you need to.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
From:
ni***********@rediffmail.com (niklesh)
Newsgroups: microsoft.public.dotnet.framework.webservices
Subject: The underlying connection was closed: The remote name could not be
resolved
Date: 17 Dec 2004 03:05:17 -0800
Organization:
http://groups.google.com
Lines: 24
Message-ID: <65**************************@posting.google.com >
NNTP-Posting-Host: 202.81.205.3
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1103281517 16416 127.0.0.1 (17 Dec 2004
11:05:17 GMT)
X-Complaints-To:
gr**********@google.com
NNTP-Posting-Date: Fri, 17 Dec 2004 11:05:17 +0000 (UTC)
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed. fjserv.net!news.maxwell.sy
r.edu!postnews.google.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8161
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Dear all,
when i am trying to giving web reference to webservices i am getting
above said error.. i tried to find out what is the main problem then i
got from microsoft support that i have to config the for proxy because
i am trying to access from behind the firewall.
i configered my machine.config file for that but still i am getting
same problem. i did all possible things like reboot the machine ect.
but same problem i getting.... here what i did in my machine.config
file......
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://proxyserver:port" -> here i have
putted my proxy address.
bypassonlocal="true"
/>
</defaultProxy>
same setting i did in web.config but same result....
can you help me where i was wrong or any other prob.
nikelsh