Can a non .NET site - .htm/.js - call a .NET WCF or .asmx service via an Ajax GET to return data? Examples?
2条回答 默认 最新
weixin_33709609 2011-11-09 19:37关注Yes, but you have to wrap it up in jsonp to support crossdomain scripting. I use jquery to consume REST-like API written in WCF (I say REST-like because making it jsonp violates a lot of REST fundamentals, which I don't care much).
I didn't read it, but Google brought up Consuming Cross-Domain WCF REST Services with jQuery using JSONP.
解决 无用评论 打赏 举报