Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding wsdl web reference in asp .Net Core project

I've got web service http://www.mcommunicator.ru/m2m/m2m_api.asmx?WSDL And I've got a problem with connecting to it from Visual Studio 2015 in my Web API project

There is no "Add web reference" anymore I've tried to add is with: References-> Add connected Service -> WCF Service - Preview It finds 1 web service by my address, but I get an error when click finish. I guess it's not a WCF service, that's why I get an error. But I don't see any other ways to add it. Please, help me.

like image 280
el_konor Avatar asked Aug 23 '16 16:08

el_konor


People also ask

How do I add a Web service reference in .NET Core?

NET Core or . NET Standard project, this option is available when you right-click on the Dependencies node of the project in Solution Explorer and choose Manage Connected Services.) On the Connected Services page, select Add Service Reference. The Add service reference page opens.

How do I add a Web reference in Visual Studio 2019 .NET Core?

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.


1 Answers

To add the SOAP service references for clients built on top of WCF for .NET Core 1.0 install the extension Visual studio WCF Connected Service via the “Extensions and Updates” dialog box.

After installed, In Solution Explorer, right-click on the References project item and then click on the Add Connected Service option.

The Add Connected Service dialog box appears and you should have a new option "WCF Service - Preview".

like image 77
Fernando Moreira Avatar answered Sep 21 '22 16:09

Fernando Moreira