Have you tried sending your request in a properly formatted fashion yet? What I mean is with correct values etc. The reason to try this is the fact it would appear other users are succeeding.
John Warner > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Lascu > Sent: Tuesday, July 15, 2008 3:03 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable > to connect to the remote server" exception > > > Adam, John and Cristian, > > Thanks for putting up with my lack of experience and giving > me very good advice on how to make progress in my efforts to > gain access to that web service. At this time I can see that > the soapUI tool returns a NoHttpResponseException which is > described in the apache documentation as being thrown when > the server fails to respond with a valid HTTP response. > > I think I need to get someone from the technical side > involved, whoever that may be. > > Thanks again for your time. > Regards, > Eddie > > > > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Behalf Of Adam Sills > Sent: Monday, July 14, 2008 7:02 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable > to connect to the remote server" exception > > > That means you should put in one of the values of "off, > green, red, yellow, flashing" in the <meter-status> element. > > Repeat with all other "?" values until it works. > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Eddie Lascu > Sent: Monday, July 14, 2008 6:00 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable > to connect to the remote server" exception > > The wsdl is 3kb and there are two XSD files referred. One is > 17kb and one is 14kb. I can send them to you if you want. > > Incidentally, here is how that meter-status element is defined: > > <xs:complexType name="RampMeterStatus"> > <xs:sequence> > <xs:element name="device-id" > type="Device-identifier"/> > <xs:element name="meter-status" type="Meter-status"/> > <xs:element name="last-update" type="DateTimeZone"/> > </xs:sequence> > </xs:complexType> > > // further down > > <xs:simpleType name="Meter-status"> > <xs:restriction base="xs:string"> > <xs:enumeration value="off"/> > <xs:enumeration value="green"/> > <xs:enumeration value="red"/> > <xs:enumeration value="yellow"/> > <xs:enumeration value="flashing"/> > </xs:restriction> > </xs:simpleType> > > > > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Behalf Of John Warner > Sent: Monday, July 14, 2008 6:32 PM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable > to connect to the remote server" exception > Importance: Low > > > You have a schema? Oh mercy we are almost in business here. > How large is it? > > John Warner > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > > Sent: Monday, July 14, 2008 6:32 PM > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > connect to the remote server" exception > > > > Oh, I see now. Well, the request is built by soapUI based > on the WSDL > file > > and the adjacent XSD files I was given. I do not create > that request. > > Anyway, looking further for what this "HTTP/1.1 500 Internal Server > Error" > > means I found the following paragraph in a document describing the > default > > binding of SOAP onto HTTP. > > > > 6.3.4 HTTP 5xx Server Error > > If an error occurs while processing a SOAP HTTP message, > the SOAP HTTP > > server MUST issue an HTTP 500 "Internal Server Error" response and > include > > a > > SOAP message in the response containing a SOAP fault (see > section 4.4) > > indicating the SOAP processing error. > > > > Wouldn't that suggest the problem is on the server side? Or maybe my > request > > is wrong in which case I would think that the WSDL file and the > > referred > XSD > > files I work with may not be up-to date. Could that be a > cause for the > > error? > > > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] Behalf Of Adam Sills > > Sent: Monday, July 14, 2008 6:19 PM > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > connect > > to the remote server" exception > > > > > > That would be on the client side. From the log of the XML > you post to > the > > server: > > > > <meter-status>?</meter-status>[\r][\n]" > > > > Perhaps "?" is not a valid value for <meter-status>, which > is what the > error > > message seems to indicate. > > > > Adam.. > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] On Behalf Of > Eddie Lascu > > Sent: Monday, July 14, 2008 5:16 PM > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > connect to > > the remote server" exception > > > > Hi Adam, > > > > That would be on the server side, right? Unfortunately I do > not have > > any control of the server side and I am told that everything is > > "perfect" > there. > > Unless I can prove them otherwise, I have to continue > trying to access > it. > > > > Thanks, > > Eddie > > > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] Behalf Of Adam Sills > > Sent: Monday, July 14, 2008 6:10 PM > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > connect > > to the remote server" exception > > > > > > Have you thought perhaps that your meter-status element has > an invalid > value > > put in it? > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] On Behalf Of > Eddie Lascu > > Sent: Monday, July 14, 2008 5:01 PM > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > connect to > > the remote server" exception > > > > Hi John, > > > > I am not sure I understand what you are saying. Basically, at this > > time, > I > > am working on two fronts in parallel. One is to try to use > the soapUI > and > > get a response back. That will prove that the web service > is running > > and there is no error returned by it when I invoke one of its web > > methods. > The > > second front I trying to make progress is to do the same > thing from my > > Visual Studio project. In both cases I am using a wireless > connection > > to > the > > Internet that bypasses the proxy server, so this should not be an > > issue. > > > > With soapUI I am somehow more advanced in that I have introduced the > user > > name and the password for the request. The response that I get back > seems to > > be generated by the server. If you are curios, here is the > output of > > the HTTP log window in soapUI: > > > > > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "POST / HTTP/1.1[\r][\n]" Mon > > Jul 14 17:52:52 EDT 2008:DEBUG:>> "Content-Type: > > text/xml;charset=UTF-8[\r][\n]" Mon Jul 14 17:52:52 EDT > 2008:DEBUG:>> > > "SOAPAction: ""[\r][\n]" Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> > > "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "Host: > > dap3.dot.ca.gov:18080[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "Content-Length: 934[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "<soapenv:Envelope > > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:atie="http://www.ATIE-00-00-01">[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " <soapenv:Header/>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " <soapenv:Body>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <atie:rMSResponseData>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > <rmsMessage>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > <rmsStatus>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <device-id>?</device-id>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <meter-status>?</meter-status>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <last-update>?</last-update>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > </rmsStatus>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <assocLDSid>?</assocLDSid>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <organization-owning>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <organization-id>?</organization-id>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <organization-name>?</organization-name>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > </organization-owning>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > <rms-location>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <latitude>?</latitude>[\r][\n]" Mon Jul 14 17:52:52 EDT > 2008:DEBUG:>> > > " <longitude>?</longitude>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > </rms-location>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <station-status>?</station-status>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > <meter-rate>?</meter-rate>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > </rmsMessage>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " > > </atie:rMSResponseData>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> " </soapenv:Body>[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:>> "</soapenv:Envelope>" > > > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "HTTP/1.1 500 Internal Server > > Error[\r][\n]" Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "Server: > > gSOAP/2.7[\r][\n]" Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< > > "Content-Type: text/xml; charset=utf-8[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "Content-Length: 762[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "Connection: close[\r][\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "<?xml version="1.0" > > encoding="UTF-8"?>[\n]" > > Mon Jul 14 17:52:52 EDT 2008:DEBUG:<< "<SOAP-ENV:Envelope > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:tmdd="http://www.TMDD-Partial-02-00-01" > > xmlns:ATMS="http://center-services/atieSoapHttpServiceBinding" > > xmlns:ATIE="http://www.ATIE-00-00-01" > > xmlns:ClientDummy="http://center- > > services/clientSoapHttpServiceBinding"><SOA > > P-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP- > > ENV:Fault><faultcode>SOA > > P-ENV:Client</faultcode><faultstring>Validation constraint > violation: > data > > type mismatch in element > > <meter-status></faultstring></SOAP-ENV:Fault></SOAP- > > ENV:Body></SOAP-EN > > V:Envelope>" > > > > The server generates an internal error and closes the > connection. The > fault > > string that comes back is misleading, since it says > something about a > > validation constraint violation. I think it's a problem with the > > server closing the connection right after receiving the request. > > > > Any suggestions? > > > > Regards, > > Eddie > > > > > > -----Original Message----- > > From: Discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] Behalf Of John Warner > > Sent: Monday, July 14, 2008 3:46 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 you actually just seen if the wsdl tool will connect, > you can do > > everything but write the file and see what return set you > get from the > > remote site. Your proxy may still not be right. > > > > John Warner > > > > > > > > > > > -----Original Message----- > > > From: Discussion of advanced .NET topics. > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Eddie Lascu > > > Sent: Monday, July 14, 2008 1:49 PM > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > > connect to the remote server" exception > > > > > > > > > Hi John, > > > > > > I followed your suggestion and built the SOAP client using the > > > wsdl.exe tool. I specified the user name and the password > among the > > > parameters, but I don't see them in the code of the class > that was > > > created, unlike say the access point. Needless to say, > the result is > > > identical: "Connection was unexpectedly closed by the > server". Do I > > > need to add something other resource to the project? I > checked the > > > results of the wsdl command and there is only one ".cs" file that > > > got created. Am I missing something? > > > > > > Thanks, > > > Eddie > > > > > > > > > > > > -----Original Message----- > > > From: Discussion of advanced .NET topics. > > > [mailto:[EMAIL PROTECTED] Behalf Of > > John Warner > > > Sent: Saturday, July 12, 2008 4:59 AM > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > > connect to the remote server" exception > > > Importance: Low > > > > > > > > > Open a command window and run wsdl from there and you will see a > > > list of all the options. I'm thinking with the user ID > you have and > > > password that this tool can do the job you need. I'm blocked in > > > experimenting of course as I do not have the credentials that you > > > have been supplied with. > > > > > > John Warner > > > > > > > > > > -----Original Message----- > > > > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > > > > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > > > > Sent: Saturday, July 12, 2008 12:14 AM > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > > > connect to the remote server" exception > > > > > > > > So you mean when adding the Web Reference to the project? > > > That's when > > > the > > > > proxy client is created based on the WSDL. I do not recollect a > > > > step > > > where I > > > > would have to enter the user name and the password. > > > > > > > > > > > > -----Original Message----- > > > > From: Discussion of advanced .NET topics. > > > > [mailto:[EMAIL PROTECTED] Behalf Of > > John Warner > > > > Sent: Friday, July 11, 2008 9:20 PM > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable to > > > > connect to the remote server" exception > > > > Importance: Low > > > > > > > > > > > > This will happen when wsdl creates a proxy for you, some of the > > > > options include setting uids and pwds. > > > > > > > > John Warner > > > > > > > > > > > > > -----Original Message----- > > > > > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > > > > > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > > > > > Sent: Friday, July 11, 2008 7:38 PM > > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates > "Unable to > > > > > connect to the remote server" exception > > > > > > > > > > Incidentally, do you know what is the equivalent in .NET > > > of setting > > > the > > > > user > > > > > name and the password among the properties of the request? My > > > > > web > > > > service > > > > > class is inherited from SoapHttpClientProtocol and I > don't see > > > > > it > > > having > > > > a > > > > > request method or property that would allow me to set > these two > > > > parameters. > > > > > The only thing that remotely looks like that is the > Credentials > > > property > > > > of > > > > > the SoapHttpClientProtocol class. > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Discussion of advanced .NET topics. > > > > > [mailto:[EMAIL PROTECTED] Behalf Of > > > Eddie Lascu > > > > > Sent: Friday, July 11, 2008 7:33 PM > > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates > "Unable to > > > > > connect to the remote server" exception > > > > > > > > > > > > > > > Hi John, > > > > > > > > > > It's a long story. The guy who developed the ws is no > > > longer under > > > > > the payroll of the client and because of that I am > not allowed > > > > > to contact > > > > him > > > > > (they are afraid that the developer will start > billing the time > > > > > spent > > > > with > > > > > me). On the other hand, the client doesn't have any other > > > technical > > > > person > > > > > to look after the web service and they claim that > > > everything is up > > > > > and running from their perspective. Now it's my job to > > > piece things > > > together > > > > > without much assistance from the other end. > > > > > > > > > > Anyway, I made some progress. Not being too familiar with > > > the soapUI > > > > tool (I > > > > > just installed it today) I didn't notice that fact that I can > > > > > set the > > > > user > > > > > name and the password among the request properties. Once > > > I have done > > > > that, > > > > > the response was no longer missing. Now I get this response: > > > > > > > > > > <SOAP-ENV:Body> > > > > > <SOAP-ENV:Fault> > > > > > <faultcode>SOAP-ENV:Client</faultcode> > > > > > <faultstring>Validation constraint > violation: data type > > > > mismatch > > > > > in element <dms-sign-type></faultstring> > > > > > </SOAP-ENV:Fault> > > > > > </SOAP-ENV:Body> > > > > > > > > > > I wonder whether this is generated by the server (for > > > Cristian - you > > > > were > > > > > right, the web service was developed in Java and is > hosted by a > > > > gSOAP/2.7 > > > > > server) or there is something wrong with my request. > > > > > > > > > > I'll dig some more. > > > > > Thanks, > > > > > Eddie > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Discussion of advanced .NET topics. > > > > > [mailto:[EMAIL PROTECTED] Behalf Of > > > > John > > > > > Warner > > > > > Sent: Friday, July 11, 2008 7:05 PM > > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates > "Unable to > > > > > connect to the remote server" exception > > > > > Importance: Low > > > > > > > > > > > > > > > What do the people on the other side of this have to say? > > > > > > > > > > John Warner > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > > > > > > [EMAIL PROTECTED] On Behalf Of Eddie Lascu > > > > > > Sent: Friday, July 11, 2008 7:05 PM > > > > > > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > > > > > Subject: Re: [ADVANCED-DOTNET] Web Service generates "Unable > > to > > > > > > connect to the remote server" exception > > > > > > > > > > > > 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 > > > > > > > > > > =================================== > > > > > 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 > > > > > > > > =================================== > > > > 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 > > > > > > =================================== > > > 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 > > > > =================================== > > 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 > > =================================== > 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 > > =================================== > 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