consuming services in asp.net core webapi

Ram Af 0 Reputation points
2023-12-26T19:18:24.79+00:00

Hey I just added a service reference in .net framework 4.8 and it generated an app.config with service bindings.
When I add service reference in .Net Core 8 Web API it doesnt add any bindings file. Does this mean that I cant use bindings object in .net core web api?
Also does it mean that I cant see bindings and endpoint info when i add a service reference in .net core 8?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,816 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,476 Reputation points Volunteer Moderator
    2023-12-26T21:10:45.9733333+00:00

    There is a component AddServiceModelConfigurationManagerFile() which loads an xml file with binding information. There is limited documentation as it was meant for porting old code.

    https://devblogs.microsoft.com/dotnet/upgrading-a-wcf-service-to-dotnet-6/

    note: CoreWcf is a compatibility project, not a core technology


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.