MSDN上的以下文章提供了调用Web服务,AJAX ...... http://msdn.microsoft.com/en-us/magazine/cc163499.aspx像AJAX调用Web服务
<asp:ScriptManager ID="_scriptManager" runat="server">
<Services>
<asp:ServiceReference Path="StockQuoteService.asmx" />
</Services>
</asp:ScriptManager>
然后直接在JScript中使用的类名的ASP.NET AJAX解决方案。但是,当我将该服务上传到其他域并试图执行相同的操作时,它将无法工作。我有没有办法做到这一点,或者我错过了什么?在此先感谢...
尝试直接浏览到其他域上的.asmx。你看到了什么? – 2010-12-08 08:02:24
工作正常。即使正常的服务器调用工作正常。唯一的问题是AJAX调用。 – mihsathe 2010-12-08 08:05:03