13

Is it possible in asp.net to update or create a web service reference from a wsdl file on our local drives? If so, could you please describe it ?

2
  • Yes, it is possible. Haven't you tried doing so? If yes, what problem are you facing? Commented Sep 21, 2013 at 7:56
  • Well, Actually I don't know how we can do it. Commented Sep 21, 2013 at 8:02

3 Answers 3

21

Follow these steps.

  1. Open the Solution/Project in Visual Studio

  2. Right Click on Solution Explorer on the project for which you want to add web reference.

  3. Select Add Service Reference. (This will open a Add Service Reference dialogue box.)

  4. Click on Advanced... button located at bottom of the dialogue box. (This will open another dialogue box named Service Reference Settings.)

  5. Click on Add Web Reference button located at bottom of the dialogue box. (Again a dialogue box Add Web Reference would appear.)

  6. Enter OR Copy & Paste full path for the WSDL file from your local drive as the URL.

  7. Click on Go button besides the URL box.

  8. Edit Web Reference Name if you want to.

  9. Click on Add Reference.

And you are done.

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

Comments

4

It's been long time from accepted answer. If you are using VS2019 you can simply click on the service and select "Update..."

Screenshot of context (right-click) menu showing where to update the Microsoft WCF Web Service Reference Provider

Comments

0

No need to add the service as Web Reference. You can do it setting the "Address" Field as the path of the file, for e.g.:

c:\contracts\mycontract.xml

and then "Go".

enter image description here

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.