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.
-
1Create 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– Niranjan Singh2011-11-23 11:51:34 +00:00Commented Nov 23, 2011 at 11:51
Add a comment
|
3 Answers
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
Comments
I think this is answered in this post: You can use WSDL.exe to generate a client, which you can access from code.