简体   繁体   中英

Consume WCF in .NET Framework application

I want to consume a WCF service in an existing application that is in.Net Framework 4.7.. But I don't see any possibilities because the WCF Web Service Reference option is applicable to projects created using the following project templates:

Visual C# > .NET Core
Visual C# > .NET Standard
Visual C# > Web > ASP.NET Core Web Application.

Does anyone know a way how to add it for .net Framework?

There are many ways to reference the wcf service. Use the Svcutil tool to generate proxy class calls , add service reference calls, use channel factory to call, and so on. There are tutorials on the official documents, you can choose the method that suits you to call the wcf service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM