Hi all,
I've got a URI (ip/port) that has a web service on the other end. I
can't access it through VS Add Web Reference because it requires
authentication. How can I find out the interface the service provides?
Thanks for any tips,
cdj
Nicholas Paldino [.NET/C# MVP] - 19 Jul 2007 17:03 GMT
cdj,
You will have to download the WSDL file somehow. I would suggest using
a web browser to get at it (and authenticate you correctly) and then adding
the reference to that. You can set the URI of the proxy you generate in the
config file after that, or in code.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi all,
>
[quoted text clipped - 5 lines]
>
> cdj
Arne Vajhøj - 22 Jul 2007 23:46 GMT
> I've got a URI (ip/port) that has a web service on the other end. I
> can't access it through VS Add Web Reference because it requires
> authentication. How can I find out the interface the service provides?
I don't know if it can be specified in VS, but the wsdl command
line utility allow you to specify username and password.
C:\>wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
...
/username:<username>
/password:<password>
/domain:<domain>
The credentials to use when connecting to a server that
requires authentication. Short forms are '/u:', '/p:' and '/d:'.
...
Arne
sherifffruitfly - 22 Jul 2007 23:52 GMT
On Jul 22, 3:46 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:
> > I've got a URI (ip/port) that has a web service on the other end. I
> > can't access it through VS Add Web Reference because it requires
[quoted text clipped - 19 lines]
>
> Arne
Cool - thanks folks!