普通网友 2011-11-09 19:31
浏览 46

非.net站点调用WCF

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.

    评论

报告相同问题?