Cristian, Joel et al,

I made some progress in that I have tried a few things:

- I switched on to the wireless network that bypasses the firewall and now I
don't get the "Unable to connect to the remote server" error. Instead I get
a new one that says: "The underlying connection was closed: The connection
was closed unexpectedly.";

- If I point my IE browser to the "http://dap3.dot.ca.gov:18080/"; URL I get
some kind of SOAP response that indicates a SOAP-ENV:Client fault with the
error string being "HTTP GET method not implemented" (BTW, could this be a
valid access point for a web service?);

This raises two issues:

1. The IE browser may not be the best tool to look at the web service;

2. My VS2005 connection is closed because I do not provide the user
name/password I was given. I tried to write something like this:

  CredentialCache myCache = new CredentialCache();
  myCache.Add(new Uri("http://dap3.dot.ca.gov/";), "Basic", new
NetworkCredential("myusername", "mypassword"));
  objMyWebService.Credentials = myCache;

That didn't make any difference. Can you guys comment on my approach? Do you
suspect that this is the problem?
Obviously, there are some security features implemented in this web service
and I don't think I get them right in my code.

Your help will be highly appreciated.

Thanks,
Eddie




-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Joel Paula
Sent: Friday, July 11, 2008 9:25 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to connect
to the remote server" exception


Eddie,

Sometimes the URL in the WSDL for the webservice is not the real one, for
security (?!) reasons. You can check it on your app.config or directly in
code, accessing its Url property. You can change it using any of the two
methods.

HTH
JP

===================================
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