C# WCF Web API + JSONP [英] C# WCF Web API + JSONP
本文介绍了C# WCF Web API + JSONP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有一种简单的方法可以让 JSONP 为新的 WCF Web API 休息服务工作?
Is there an easy way to get JSONP working for the new WCF Web API rest services?
我试过了,但没有运气
<standardEndpoints>
<webHttpEndpoint>
<standardEndpoint name=""
helpEnabled="true"
automaticFormatSelectionEnabled="true"
defaultOutgoingResponseFormat ="Json"
crossDomainScriptAccessEnabled="true"/>
</webHttpEndpoint>
</standardEndpoints>
推荐答案
更新:最新的 WCF Web API 位带有集成的 JSONP 支持,而用法几乎与上面链接中描述的方式相似.
Update: Latest WCF Web API bits ships with integrated JSONP support whereas usage is almost similar to the way described in the link above.
这篇关于C# WCF Web API + JSONP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文