【发布时间】:2014-03-18 09:35:32
【问题描述】:
我定义了这个 ScriptManager:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="~/webservices/WSModuloSocial.asmx" InlineScript="true" />
</Services>
</asp:ScriptManager>
如果我从网站调用 WebService 函数(使用它),它会以 json 格式返回。 但是,如果我从另一个域(使用 jquery,Access-Control-Allow-Origin 策略)调用相同的 WebService 函数,它会返回 XML。
谁将 XML 转换为 JSON?我应该在哪里转换它?
【问题讨论】:
标签: c# .net xml json web-services