调用web service超时

简介:

SOLUTION:

==========

- We need to increase the timeout setting of the web service proxy class before making the call to the web service.

Example:

1
2
3
localhost.Service1 ws = new  localhost.Service1();
ws.Timeout = 300000;
ws.HelloWorld();

The Timeout is set in milliseconds for synchronous calls to the XML Web service. The default is 100000 milliseconds. Setting the Timeout property to Timeout.Infinite indicates that the request does not time out; however, the Web server can still cause the request to time out on the server side.

NOTE:

======

- In these kind of scenarios we also need to increase the maxRequestLength in the web.config file for the webservice to match the size of the upload file.

- Also we need to make sure to set the maxconnection setting in the config file for the Windows service/application to appropriate number depending on the way requests are made to the webservice.

本文转自敏捷的水博客园博客,原文链接http://www.cnblogs.com/cnblogsfans/archive/2009/08/26/1554235.html如需转载请自行联系原作者


王德水

相关文章
|
9月前
phpstorm插件应用:Test RESTful WEB Service 控制台接口调试工具
phpstorm插件应用:Test RESTful WEB Service 控制台接口调试工具
118 0
|
1月前
|
存储 缓存 算法
关于 Service Worker 和 Web 应用对应关系的讨论
关于 Service Worker 和 Web 应用对应关系的讨论
13 0
|
2月前
|
Java API Apache
Apache CXF生成WebService的客户端
Apache CXF生成WebService的客户端
|
6月前
|
JSON 安全 API
使用 ABAP sproxy 事务码生成的 Proxy 消费 Web Service
使用 ABAP sproxy 事务码生成的 Proxy 消费 Web Service
55 0
|
2月前
|
XML 网络架构 数据格式
Ruby 教程 之 Ruby Web Service 应用 - SOAP4R 2
Ruby Web Service 应用 - SOAP4R
24 5
|
2月前
|
XML Linux 网络架构
Ruby 教程 之 Ruby Web Service 应用 - SOAP4R 1
Ruby Web Service 应用 - SOAP4R
23 3
|
8月前
|
XML Java API
Java Web Service Get请求使用指南
Java Web Service Get请求使用指南 在当今互联网时代,Web Service已经成为了现代软件开发中不可或缺的一部分。而Java作为一种广泛使用的编程语言,自然也提供了丰富的工具和库来支持Web Service的开发。本文将为大家介绍如何使用Java编程语言进行Web Service的Get请求。
87 0
|
4月前
|
Java 数据库连接 Apache
SpringBoot整合CXF实现WebService
SpringBoot整合CXF实现WebService
125 0
|
7月前
ABAP Web Service 调用的一个例子
ABAP Web Service 调用的一个例子
29 0
|
11月前
boot+cxf,实现webservice
boot+cxf,实现webservice