List Info

Thread: Web Service generates "Unable to connect to the remote server" exception




Web Service generates "Unable to connect to the remote server" exception
country flaguser name
Canada
2008-07-10 13:00:59
I have this Web Service that was made available on the
Internet. Using its
WSDL file I created a Web Reference in my VS.NET 2005
project. The problem
is that every time I try to invoke any of its web methods I
get the same
exception: "Unable to connect to the remote
server!". Hitting the same ws
with XML Spy returns the expected SOAP responses so I am
thinking that I
have something wrong in my IDE. Can anyone make a suggestion
where to look
and what else to try?

Any suggestion will be highly appreciated.

Thanks in advance,
Eddie

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Web Service generates "Unable to connect to the remote server" exception
country flaguser name
United States
2008-07-10 17:43:33
Hey Eddie,

Please check the WSDL you added the reference from.  When
you look at the
WSDL, at the bottom there is a <port> element and
within that a
<soap:address> element that lists the Access Point
location.  Is that by any
chance set to LOCALHOST or an unreachable address?

For example, in the WSDL for the XWebEmailValidation Web
Service
(http://ws.xwebservices.com/XWebEmailVa
lidation/V2/XWebEmailValidation.wsdl)
the Access Point in the <soap:address> is a URI that
you should be able to
hit with anything:
http://ws.xwebservices.com/XWebEmailValid
ation/V2/EmailValidation.asmx.

If you get the error when adding a reference off the WSDL
above, let me
know.  It's probably something else, like a firewall that is
blocking POSTs
to the Access Point location.


Cristian Sturek
Principal SOA Architect
http://www.xwebservices.c
om
http://www.soahub.com

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Eddie
Lascu
Sent: Thursday, July 10, 2008 11:01 AM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Web Service generates
"Unable to connect to the
remote server" exception

I have this Web Service that was made available on the
Internet. Using its
WSDL file I created a Web Reference in my VS.NET 2005
project. The problem
is that every time I try to invoke any of its web methods I
get the same
exception: "Unable to connect to the remote
server!". Hitting the same ws
with XML Spy returns the expected SOAP responses so I am
thinking that I
have something wrong in my IDE. Can anyone make a suggestion
where to look
and what else to try?

Any suggestion will be highly appreciated.

Thanks in advance,
Eddie

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


Re: Web Service generates "Unable to connect to the remote server" exception
country flaguser name
United States
2008-07-14 10:22:04
This is unlikely, but it's an issue at my location.  We've
got a proxy
server that requires NTLM authentication, and proxy server
settings that
are entirely dynamic (set in a proxy.pac script). It seems
that the 2.0
framework won't execute proxy.pac to discover the server it
should use.
We fix that by including this in the app.config file:

  <system.net>
    <defaultProxy enabled="true"
useDefaultCredentials="true">
      <proxy bypassonlocal="True"
proxyaddress="http://yo
ur.server.name.com:8080"/>
    </defaultProxy>
  </system.net>

HTH,

-Roy

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of
Cristian
Sturek
Sent: Thursday, July 10, 2008 3:44 PM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Web Service generates
"Unable to connect
to the remote server" exception

Hey Eddie,

Please check the WSDL you added the reference from.  When
you look at
the WSDL, at the bottom there is a <port> element and
within that a
<soap:address> element that lists the Access Point
location.  Is that by
any chance set to LOCALHOST or an unreachable address?

For example, in the WSDL for the XWebEmailValidation Web
Service
(http://ws.xwebservices.com/XWebEmailValid
ation/V2/XWebEmailValidation.w
sdl)
the Access Point in the <soap:address> is a URI that
you should be able
to hit with anything:
http://ws.xwebservices.com/XWebEmailValid
ation/V2/EmailValidation.asmx.

If you get the error when adding a reference off the WSDL
above, let me
know.  It's probably something else, like a firewall that is
blocking
POSTs to the Access Point location.


Cristian Sturek
Principal SOA Architect
http://www.xwebservices.c
om
http://www.soahub.com

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:ADVANCED-DOTNETDISCUSS.DEVELOP.COM] On Behalf Of Eddie
Lascu
Sent: Thursday, July 10, 2008 11:01 AM
To: ADVANCED-DOTNETDISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Web Service generates
"Unable to connect to
the remote server" exception

I have this Web Service that was made available on the
Internet. Using
its WSDL file I created a Web Reference in my VS.NET 2005
project. The
problem is that every time I try to invoke any of its web
methods I get
the same
exception: "Unable to connect to the remote
server!". Hitting the same
ws with XML Spy returns the expected SOAP responses so I am
thinking
that I have something wrong in my IDE. Can anyone make a
suggestion
where to look and what else to try?

Any suggestion will be highly appreciated.

Thanks in advance,
Eddie

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )