异步Web服务方法 [英] asynchronous web service methods

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

问题描述

我一直在使用Web服务,并且注意到我对服务的Web参考为每个服务调用创建了一个异步方法.


我想知道使用在服务器上由Web服务创建的内置异步方法还是在客户端上使用哪种方法更好.

I have been playing around with web services and I noticed that my web reference of my services creates async methods for each service call.


I was wondering which is better to use the built in async methods created by the web service on the server or to use the methods on the client.

推荐答案

通常,对于异步方法,您需要指定一个回调方法.调用的Web方法立即返回,但仍在后台运行.完成处理后,它将调用指定的回调方法及其结果.
Generally, for async methods, you need to specify a callback method. The called web method immediately returns but keeps working in the background. When its done processing, it invokes the specified callback method with its results.


这篇关于异步Web服务方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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