Asp.net MVC calling wcf service

asp.net-mvcwcf

I have asp.net application which i am planning to convert into asp.net mvc app.

One area that i havn't found how it could be done is, App is using scriptmanager to make ajax calls to wcf service. And scriptmanager simply takes care or all element related to ajax, serializing – etc.

I haven't found what i can use in mvc that replaces that piece of functionality

  • Server hosting WCF service
  • MVC calling wcf service through ajax?
  • No controller, view etc to wrap wcf service to respond for ajax call

I found lot about using jquery, ajaxaction stuff but this don't look like exact replacement of scriptmanager like functionality.

Best Answer

If I understand your question, the easiest method would be to continue to use the ScriptManager control in the MVC port of the application.

The Polymorphic Podcast did a show on this topic. There are several potentially helpful links in the show notes.

Related Topic