Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
70 views
in Technique[技术] by (71.8m points)

c# - 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?

question from:https://stackoverflow.com/questions/65886452/consume-wcf-in-net-framework-application

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...