I have downloaded a WSDL file from Internet and just want to know how to use the webservices out of the provided wsdl file using ASP.net version 2.0.
-
1[Create an ASMX web service from a WSDL file](http://stackoverflow.com/questions/548314/create-an-asmx-web-service-from-a-wsdl-file) All you need to do is create a class that inherits from the interface that WSDL.EXE has generated, and then implement the methods from the interface. – Niranjan Singh Nov 23 '11 at 11:51
3 Answers
You can just add a web service reference. Back in Visual Studio 2005, this was in the context menu of the project and is called "Add Web Reference". In the dialog, just enter the location where you downloaded the WSDL file and a proxy will be generated for you.

- 3,053
- 3
- 26
- 37
When you use Add Service reference
The “Address” text box at the top can be used to type the URL to the Service Description, or “WSDL” file
. Since the service is in the same solution as the project we’re trying to add it to, we can take advantage of the “Discover” dropdown at the right. Clicking the arrow shows “Services in this solution”:
Follow these links for detailed information:
How to use WSDL file - asp.net forum thread

- 18,017
- 2
- 42
- 75
I think this is answered in this post: You can use WSDL.exe to generate a client, which you can access from code.

- 1
- 1

- 6,356
- 2
- 30
- 53