[英]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:我想在.Net Framework 4.7 中的现有应用程序中使用 WCF 服务。但我看不到任何可能性,因为 WCF Web 项目适用于创建的项目模板的参考选项:
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?有谁知道如何为 .net 框架添加它?
There are many ways to reference the wcf service.有很多方法可以引用 wcf 服务。 Use the Svcutil tool to generate proxy class calls , add service reference calls, use channel factory to call, and so on.
使用Svcutil工具生成代理class调用, 添加服务引用调用,使用通道工厂调用等等。 There are tutorials on the official documents, you can choose the method that suits you to call the wcf service.
官方文档上有教程,可以选择适合自己的方式调用wcf服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.