Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sherifffruitfly - 19 Jul 2007 16:34 GMT
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!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.