Adding WSDL files from file directory

Viewed 28610

I have WSDL files that I need to add to my project as web references. They are located with .wsdl extensions in my local directory. I have never added them like this so I am not really sure how I can add them as a web reference.

I haven't been able to find something useful. Any ideas?

4 Answers

No answer was accurate for me, but for VS2019, to add a wsdl file as a service reference, I right-clicked on the project -> add -> connected services -> Microsfot WCF Web Services reference -> browse the .wsdl file. This will generate the code to call the referenced services.

To add a wsdl file as a service reference,right-click on the project ,then add , then connected services and then Microsfot WCF Web Services reference. Select the .wsdl file you want and then the code for calling the service will be generated for you if the there are no mistakes in the wsdl.

This can also be helpful: How to use a WSDL

Related