---
title: "异步Webservice方法解决页面超时甚至网页down掉的情况"
author: "winzenghua"
date: "2007-11-05T16:27:00Z"
tags: []
slug: "webservice-down"
draft: false
lastmod: "2007-11-05T16:27:00Z"
id: 952940
url: "https://java4gis.iteye.com/blog/952940"
---

由于系统查询统计算法比较耗时，经常出现页面超时甚至网页down掉的情况，决定调用采用异步Webservice方式，给用户一个等待的界面。在后台dll业务逻辑类库中的基础上将统计算法封装为Webservice。系统整体架构如下：

[![](http://p.blog.csdn.net/images/p_blog_csdn_net/wangyihust/346179/o_AsynWebService.jpg)](http://p.blog.csdn.net/images/p_blog_csdn_net/wangyihust/346179/o_AsynWebService.jpg)

也可以在网页中另开一个线程来处理大批量运算逻辑，只不过页面中需要一个定时器来定时扫描处理结果。

[![](http://p.blog.csdn.net/images/p_blog_csdn_net/wangyihust/346179/o_async.JPG)](http://p.blog.csdn.net/images/p_blog_csdn_net/wangyihust/346179/o_async.JPG)