How to find out what methods, etc. a web service makes available?

  • Thread starter Thread starter sherifffruitfly
  • Start date Start date
S

sherifffruitfly

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
 
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.
 
sherifffruitfly said:
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 said:
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

Cool - thanks folks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top