用ajax调用webservice [英] webservice call with ajax

查看:54
本文介绍了用ajax调用webservice的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根据文章写了一个网络服务电话:将jQuery与Web服务结合使用的介绍 [ ^ ]



有效!但是当转到应用程序中的另一个页面,然后回到进行Web服务调用的页面时,它会抛出错误:webservice无法访问!!



1.我添加了服务参考

2.我尝试了以下,但没有工作:

I wrote a webservice call based on article:Introduction to using jQuery with Web Services[^]

It works! BUT when go to another page in the app, and then back to page that makes the web service call, it throws error: webservice unreachable!!

1. I added the service reference
2. I tried the following, but didn''t work:

<asp:ScriptManager ID="ScriptManager1" runat="server">
 <Services>
 <asp:ServiceReference Path="~/ServiceMethodPage.asmx" />
 </Services>
 </asp:ScriptManager>





任何人都可以帮忙????



Can anyone help????

推荐答案

http://msdn.microsoft.com/en-us/magazine/cc163499.aspx [ ^ ]



http://www.youtube.com/watch?v=GCACfBm199Y [ ^ ]


这篇关于用ajax调用webservice的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆