通过Ajax调用Web Service时无法找到资源错误

时间:2015-04-18 05:39:15

标签: jquery .net ajax web-services

我已经创建了一个名为multiOptionService.asmx的.net Webservice。在这个Webservice中,我创建了一个名为public string getCallType()的WebMethod。现在在我的jquery文件中,我试图通过ajax使用下面的代码调用。

function showCallTypeDialogueBox() {
var calloutput = null;
$.ajax({
    type: 'GET',
    url: 'multiOptionService.asmx/getCallType',
    async: false,
    dataType: "text",
    success: function (data) {     
        alert(data);
        }
    }
});

现在当我试图调用该函数时,我在winfox的firebug中出现The resource cannot be found.错误。 请帮我告诉我哪里出错了并纠正我.. 感谢..

0 个答案:

没有答案