在AdobeEdge中,使用JQuery调用webservice不会触发返回时的成功
我有这个网络服务在AdobeEdge中,使用JQuery调用webservice不会触发返回时的成功,jquery,web-services,adobe-edge,Jquery,Web Services,Adobe Edge,我有这个网络服务 [WebService(Namespace = "http://localhost/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ScriptService] [System.ComponentModel.ToolboxItem(false)] public class CompanyData : WebService { [WebMethod] public Strin
[WebService(Namespace = "http://localhost/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ScriptService]
[System.ComponentModel.ToolboxItem(false)]
public class CompanyData : WebService
{ [WebMethod]
public String HelloWorld()
{
return "Hello JSON";
}
}
在同一个目录中,我有一个边缘生成的HTML文件
在场景中,有一个带有此代码的按钮onClick
$.ajax({
type: "POST",
url: "CompanyData.asmx/HelloWorld",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: 'json',
success: function(response)
{
//get the value of a Symbol variable
//sym.getComposition().getStage().sym.getSymbol("feedback").html(response.d);
this.play();
},
failure: function(msg)
{
sym.getComposition().getStage().sym.getSymbol("feedback").html(msg);
},
error:function (request, status, error)
{
}
});
未达到成功功能。我不明白为什么。尝试代码的变体,阅读其他示例-仍然不起作用
我使用了错误和失败
我做错了什么?这两个页面都位于本地主机上的IIS 7上
提前谢谢我弄明白了。问题不是返回的数据没有触发success函数,而是。问题在于我的垃圾Adobe Edge脚本语法