asp.net MVC调用wcf服务

时间:2022-08-24 22:17:29

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

我有asp.net应用程序,我打算转换为asp.net mvc应用程序。

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.

我不知道如何完成的一个领域是,App正在使用scriptmanager对wcf服务进行ajax调用。而scriptmanager只是照顾或与ajax,序列化等相关的所有元素。

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

我还没有找到我可以在mvc中使用的替换该功能的东西

  • Server hosting WCF service
  • 托管WCF服务的服务器

  • MVC calling wcf service through ajax?
  • MVC通过ajax调用wcf服务?

  • No controller, view etc to wrap wcf service to respond for ajax call
  • 没有控制器,视图等来包装wcf服务以响应ajax调用

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

我发现很多关于使用jquery,ajaxaction的东西,但这看起来并不像scriptmanager那样完全替代功能。

1 个解决方案

#1


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

如果我理解你的问题,最简单的方法是继续在应用程序的MVC端口中使用ScriptManager控件。

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

多态播客在这个主题上做了一个展示。节目笔记中有几个可能有用的链接。

#1


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

如果我理解你的问题,最简单的方法是继续在应用程序的MVC端口中使用ScriptManager控件。

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

多态播客在这个主题上做了一个展示。节目笔记中有几个可能有用的链接。