使用javascript调用Web服务时出现问题 [英] Problem with calling Web Services using javascript
本文介绍了使用javascript调用Web服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好.
我正在尝试使用javacript调用Web服务,但无法在javascript代码中访问服务类及其方法.
有人可以告诉我我该怎么做,还是需要导入任何名称空间以使用该类?
等待快速回复.
Hello to all of you.
I''m trying to call web services using javacript but I am unable to access services class and their methodes in javascript code.
Can anybody please tell me what I have to do, or is there any need to import any namespace to use that class?
Waiting for fast reply.
推荐答案
请参阅我的小文章,
http://www.codeproject.com/Tips/103215/Webservice-Using-Javascript.aspx [^ ]
希望这能消除您的疑虑.
如果有帮助,请 投票 和 接受答案 .
See my small article on that,
http://www.codeproject.com/Tips/103215/Webservice-Using-Javascript.aspx[^]
Hope this will clear your doubts.
Please vote and Accept Answer if it Helped.
您是谈论在Asp.net Ajax
中使用ScriptMethods
?您知道ScriptMethods
是JavaScripts
可以访问的Web服务方法.以下链接可以帮助您检查是否正确编写了脚本和代码:
http://msdn.microsoft.com/en-us/magazine/cc163499.aspx [ ^ ]
Are you talking about usingScriptMethods
inAsp.net Ajax
? You know,ScriptMethods
are the web service methods that are accessible byJavaScripts
. The following link might help you to check out whether you wrote your scripts and codes correctly:
http://msdn.microsoft.com/en-us/magazine/cc163499.aspx[^]
这篇关于使用javascript调用Web服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文