Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SOAP Web Service / VS2010 Add Service Reference

I am having problems gaining access to a clients web service online.

If I have the wsdl file, can I do "something" in VS2010 with it so I can add it as a reference and start my C# coding?

Thanks Paul

like image 669
Paul Brown Avatar asked Mar 04 '11 22:03

Paul Brown


People also ask

How do I add a reference to a web service?

To add a Web ReferenceOn the Project menu, click Add Web Reference. In the URL box of the Add Web Reference dialog box, type the URL to obtain the service description of the Excel Web Services, such as http://<server>/<customsite>/_vti_bin/excelservice.asmx or http://<server>/_vti_bin/excelservice.asmx .

How do I set up a service reference?

To access the Configure Service Reference dialog box, right-click a service reference in Solution Explorer and choose Configure Service Reference. You can also access the dialog box by clicking the Advanced button in the Add Service Reference Dialog Box.


1 Answers

When you go to "Add Service Reference", the textbox that allows you to enter a URL, can also take a path on your local filesystem to a wsdl.

Additionally, while not the optimal route, you can also use the wsdl.exe/svcutil.exe utility (bundled with VS) to generate a proxy class. Adding a reference is the better way to go, but this is an additional option.

like image 72
xelco52 Avatar answered Oct 06 '22 00:10

xelco52