3

I want to migrate my WCF services to Web API / MVC6.

Currently I have one application hosting multiple WCF web services (http://{ip}/{app}/Service{x}.svc/{vs_endpoint}). This model is pretty good, we can separate the public services from internal services and we have control over each service in particular, although they all are under one single application.

Would I be able to achieve similar thing in Web API / MVC6, having one project for multiple services? From my initial investigations I understood I would need to do something along these lines.

If yes, it would be nice to have some recommendations how to structure this project.

Also, can you share some pros and cons about one vs multiple projects to host these services?

Thank you in advance!

4
  • 1
    check this docs.asp.net/en/latest/tutorials/first-web-api.html Commented Jul 15, 2016 at 15:24
  • 2
    You can use Areas too...c-sharpcorner.com/UploadFile/4b0136/… Commented Jul 15, 2016 at 15:24
  • 1
    Web API is so much better than regular WCF. Just go for it. And if you start a new project you can use new ASP.NET Core for your Web API project. It was recently released. Commented Jul 15, 2016 at 16:29
  • Thanks Hackerman, at least now I understood the use of Areas :) Commented Jul 15, 2016 at 22:33

1 Answer 1

1

Yes you can achieve this by using either separate controllers or logically grouping controllers into areas. Once you start programming you will automatically came to know that how it is possible and easier to do than wcf. good luck...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.