Hi Cristian,

You are right, the <soap:address location> element must be the problem.
Somehow I suspected this all along because what I was given is just a server
name and a port:

http://dap3.dot.ca.gov:18080

I believe that the web service should have an entry point that is a file,
just like the "EmailValidation.asmx" file in your example below. If I point
my browser to the above URL, I get nothing (an unreachable address).

I was confused a little bit by XML Spy, since that doesn't return an error
but an actual SOAP response. As I look at it, I believe it just creates a
generic response where every field has a default value.

I can add a web reference to your web service, so I guess there is nothing
wrong with my Visual Studio IDE.

I think I need to get back to the developer of the web service and ask him
about the full access point for his web service.

Thanks for your suggestion,
Eddie




-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Cristian Sturek
Sent: Thursday, July 10, 2008 6:44 PM
To: ADVANCED-DOTNET@DISCUSS.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/XWebEmailValidation/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/XWebEmailValidation/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.com
http://www.soahub.com

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Eddie Lascu
Sent: Thursday, July 10, 2008 11:01 AM
To: ADVANCED-DOTNET@DISCUSS.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

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

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

Reply via email to