0

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
  • 1
    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. Commented Nov 23, 2011 at 11:51

3 Answers 3

2

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.

Sign up to request clarification or add additional context in comments.

Comments

2
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 Consume a Web Service

How to use WSDL file - asp.net forum thread

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.