locked
how to migrate wcf in .net core RRS feed

  • Question

  • User190551098 posted

    Hi team

    i am migarting asp.net project to ,net core 3.1

    how to migrate wcf  here , shall i migrate wcf or use rest api for this or any other better suggestion

    please suggest

    Saturday, May 23, 2020 1:48 PM

All replies

  • User-854763662 posted

    Hi omsaisaanvi ,

    Read the following link which is helpful

    https://devblogs.microsoft.com/premier-developer/grpc-asp-net-core-as-a-migration-path-for-wcfs-in-net-core/

    Best Regards,

    Sherry

    Monday, May 25, 2020 9:08 AM
  • User-2054057000 posted

    Since you are using ASP.NET Core 3.1 version so gRPC will be a perfect choice. Here is the Implementation of gRPC in ASP.NET Core article.

    Monday, June 1, 2020 6:10 PM
  • User-474980206 posted

    while gRPC is a great library, typically faster than REST, and a contract based replacement for WCF, it has some restrictions. it requires HTTP/2 so it not callable from a browser (ajax).  Also legacy systems may not be able to call it either. 

    as always, you should define your requirements, before picking a technology.

    Monday, June 1, 2020 8:01 PM
  • User190551098 posted

    Requirement is wcf is getting use in project but lots of wcf attribute like contract , servicehost all comes under system.servicemodel which is deprecated in .net core

    Tuesday, February 2, 2021 8:20 PM
  • User-474980206 posted

    Requirements would include the calling clients. What technology do they support? Also any network restrictions? Is contract support required? What security is required?

    Webapi REST or GraphQL are the .net core replacements for wcf, but do not include contract or binary support. While not supported by default, xml can be added to webapi. gRPC is open source and has more wcf features but requires http/2 support by the server and the calling clients.

    I typically use webapi REST with swagger. the swagger support gives a client code generator and documentation

    Wednesday, February 3, 2021 3:51 PM