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 &lt;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

Reply via email to