异步调用Web服务 [英] Calling a Web service asynchronously

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

问题描述

我该如何异步"调用Web服务方法?是从我的WF4工作流中获取的吗?参考服务.那是一种方式.您也许还可以使用InvokeMethod活动来调用 Web服务的方法,使用您从添加服务参考"中获得的类型,并在InvokeMethod上将Async属性设置为true. (我从没做过,但是我想不出它为什么不起作用的任何原因.)

史蒂夫·丹尼尔森[Microsoft]
该发布是按原样"提供的.没有任何保证,也不授予任何权利.
使用包含的脚本示例必须遵守中指定的条款. http://www.microsoft.com/info/cpyright.htm

 


How can i call a web service method "asynchronously" from my WF4 workflow?

解决方案

You could create a custom AsyncCodeActivity based activity that makes the call using the async methods of the classes you get when you add service reference to the service. That would be one way. You also may be able to use the InvokeMethod activity to call the method of the web service using the types you get from Add Service Reference, and set the Async property to true on the InvokeMethod. (I've never done this but I can't think of any reason why it would not work).

Steve Danielson [Microsoft]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

 


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

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