Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happened to Add Web Reference in Visual Studio 2019?

I see I can "Add Service Reference", but I'm trying to "Add Web Reference" because I'm following some sample code which does that, and I can't find that option...

like image 654
ekolis Avatar asked Aug 01 '19 15:08

ekolis


People also ask

How do I add a website reference in Visual Studio 2019?

To add a Web reference to a project. In Solution Explorer, right-click the name of the project to add the Web service to and then click Add Web Reference. The Add Web Reference dialog box is displayed. In the URL box, enter the URL of the Web service to use.

How do I add a service reference in Visual Studio 2019 .NET core?

In Solution Explorer, right-click the name of the project to which you want to add the service, and then click Add Service Reference. The Add Service Reference dialog box appears. In the Address box, enter the URL for the service, and then click Go to search for the service.


2 Answers

In that window click "Advanced...", and in the new window click "Add Web Reference...". They hid it, because it is old technology, but still in use.

like image 59
Dialecticus Avatar answered Sep 27 '22 20:09

Dialecticus


Having looked at it a bit more, the current Microsoft story seems to be at https://docs.microsoft.com/en-us/dotnet/core/additional-tools/wcf-web-service-reference-guide . If you follow that you can tell a WCF project about an existing SOAP web service, and it'll set up at least some of the references. It's not complete yet though (see the issues here) and is by no means a drop-in replacement for the previous functionality.

When importing a web service with warnings a web browser will open up on the release notes - some of the other links from there may be useful.

like image 22
SomeoneElse Avatar answered Sep 27 '22 19:09

SomeoneElse