Hi John, I already installed the soapUI 2.0.2 tool. When I use it to invoke the web method I get no response. I am not prompted to enter the user name and password.
Thanks for your suggestion, Eddie -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of John Warner Sent: Friday, July 11, 2008 6:39 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to connect to the remote server" exception Importance: Low Have a look at this: http://forums.msdn.microsoft.com/en/asmxandxml/thread/5c70e2a2-9f1b-4338-b 96b-c32403744d2a/ John Warner > -----Original Message----- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Cristian Sturek > Sent: Friday, July 11, 2008 6:30 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > connect to the remote server" exception > > Eddie, > > On (1), you are absolutely correct. The reason why you can "see" anything > while browsing with IE when hitting any of my Web Services is because of how > IIS "interprets" ASMX files out of the box. Apache and the rest are not > that friendly. The response you're getting back, however, is correct - if > that address is an Access Point (which, BTW, it can definitely be, all I > need to do is setup a Web Service under root and make the default page the > ASMX file), then GETs are not supported, it's expecting a POST. > > Sorry, I can't help out much on (2). It's been a while since I wrote code. > Can you find out more about the Web Service? Just my $0.02, it's probably > an Access Point created automatically by an ESB. Perhaps the credentials > are expected as SOAP Headers, but then the error message would be > different. > When you browsed with IE, did it prompt you for credentials? > > > 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: Friday, July 11, 2008 11:18 AM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > connect to > the remote server" exception > > 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 DevelopMentorR http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > 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 =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com