简体   繁体   English

ASP.NET MVC调用WCF服务

[英]asp.net MVC calling wcf service

I have asp.net application which i am planning to convert into asp.net mvc app. 我有计划将其转换为asp.net mvc应用程序的asp.net应用程序。

One area that i havn't found how it could be done is, App is using scriptmanager to make ajax calls to wcf service. 我尚未发现该怎么做的一个方面是,App正在使用scriptmanager对wcf服务进行ajax调用。 And scriptmanager simply takes care or all element related to ajax, serializing - etc. 并且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之类的功能。

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 . 显示笔记中有几个可能有用的链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM