简体   繁体   English

在 .NET 框架应用中使用 WCF

[英]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.

相关问题 在ASP.NET MVC 4应用程序中使用Restful WCF服务 - Consume Restful WCF service in asp.net mvc 4 application 错误:PlatformNotSupportedException:不支持配置文件或 .NET Core 6 如何使用 SOAP .NET 框架 Z775A8A743D2639430Z3A72AEEEC24 - error: PlatformNotSupportedException: Configuration files are not supported or How .NET Core 6 consume SOAP .NET Framework wcf Java应用程序或.NET以外的任何其他应用程序可以使用启用WCF的应用程序吗 - Can a Java application or any other application other then .NET can consume WCF enabled application 在 Xamarin 跨平台应用程序中使用 WCF 服务 - Consume WCF service in Xamarin Cross Platform Application 无法在桌面应用程序中使用WCF服务 - Cannot consume WCF service in desktop application 如何在Windows应用程序中使用静态的WCF服务? - How to consume a restful WCF service in a Windows application? 以Xamarin形式使用WCF托管在Web应用程序中 - Consume wcf hosted in web application in xamarin form 在Winform应用程序中使用由SSL证书保护的WCF - Consume WCF secured with SSL certificate in a winform application 试图在Silverlight应用程序中使用WCF服务? - trying to consume a WCF service in silverlight application? 如何在UWP(Windows Runtime)开发的应用程序中使用ASP.NET WebAPI服务(内置于.NET Framework中)? - How to consume ASP.NET WebAPI service (built in .NET Framework) in an application developed in UWP (Windows Runtime)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM