在一个asp.net页中有多个Web服务调用-需要帮助 [英] Multiple webservice calls in a single asp.net page - need help

查看:79
本文介绍了在一个asp.net页中有多个Web服务调用-需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个任务,需要读取excel文件(可能包含大约100-1000行),并且对于每条记录,我都需要进行网络服务调用.来自网络服务的响应包含一个状态.我需要检查staus的值,如果状态为完成",则需要在网格中显示该记录.

有谁知道如何从单个asp.net页面调用这么多的Web服务调用?是否有可能不会出现timout问题?最好的方法是什么?

预先感谢,
Rob

I have a task where I need to read excel file (which may contains about 100 - 1000 rows) and for each record I need to make a webservice call. The response from the webserice contains a status. I need to check the value of staus and if the status is "completed" then I need to display that record in a grid.

Is anyone know how to call so many webservice calls from single asp.net page? Is it possible with out getting timout issues? What is the best way of doing this?

Thanks in advance,
Rob

推荐答案

HI
如果您已经知道Web服务列表,则需要添加所有Web服务的Web服务引用[proxy],然后在web.config文件中放入密钥的所有Web服务URL.

当您从excel中读取记录时,您还可以同时从web.config文件中读取Web服务URL

您可能需要使用thred来读取excel文件并进行网络服务调用,然后检查网络服务响应的状态
HI
If list of web services is already know to you then you need to add web service reference [proxy] of all the web services and then in the web.config file put all the web service URL for key

When you read record from excel then you can also read at the same time web service URL from web.config file

You may need to use threds for reading excel file and make web service call and then check for web service response for the status


这篇关于在一个asp.net页中有多个Web服务调用-需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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