WCF service can be converted into rest full API RRS feed

  • Question

  • HI All,

    WCF service  can be converted to  Restfull  API using any tool or with small amount of change in code. please reply as soon as possible. I have to implement in my project.

    i am waiting for a positive response.

    Friday, June 14, 2019 12:17 PM

All replies

  • No, a WCF service cannot be converted over to a rest api, becuase they are two different communication service technologies.

    Now,  if the code for the underlying functionality the WCF service was doing was in a classlib project referenced by the WCF service project implementing SoC, then you  could set reference to the classlib project in the rest API and use the code in the classlib project, becuase the WCF service or the rest api service is just a communications conduit between the referenced classlib project  the service is using on the behalf of the client. 

    It would be a less complicated conversion, if SoC has been implemented in the WCF service where you can just move the classlib project over to a rest api project and  use it, becuase there would be just basic code in the operational contracts of WCF using objects and behaviors of the objects in the classlib project.

    You could just reference the same logic of the classlib project in the rest api's Get/Post logic.

    Saturday, June 15, 2019 10:33 AM
  • very very thank u to reply... i am trying to implement your suggestion ...thanks a lots :)
    Monday, June 17, 2019 10:17 AM