Shaggy
Shaggy

Reputation: 315

How do I convert asmx service to WCF service

I am currently doing up gradation of existing asp.net application to MVC 4 application. In the exsting application there is an asmx file in the solution implementing web service for registration purpose. Now in my MVC application I need to implement this service in terms of WCF contracts. As per my knowledge To implement WCF contract & consume it one need to have 2 separate projects. First implementing WCF contracts & another for consuming it in actual application. So now I want to know that how should I replace my web service i.e. asmx file in MVC application by WCF service. Thanks in advance..

Upvotes: 2

Views: 3389

Answers (1)

Poornima
Poornima

Reputation: 928

Create a new WCF service in your solution from Visual Studio, it will create all the bindings and end points so you can easily host it on IIS. Convert all the web methods to service contracts. It should be simple task once you have the service.

You might find this helpful!

Upvotes: 1

Related Questions