SOAP WebService调用错误:基础连接已关闭:服务器已关闭预期保持活动状态的连接。 [英] SOAP WebService Call error: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server..

查看:102
本文介绍了SOAP WebService调用错误:基础连接已关闭:服务器已关闭预期保持活动状态的连接。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基础连接已关闭:A服务器关闭了预期保持活动状态的连接..

 

我们正在尝试使用他们的网络服务将一些xml数据导出到客户端服务器,但我们收到以下异常

在某些情况下连接花费的时间超过预期时间。

 

"The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.."

 

请让我如何解决此问题。当我连接到此服务器时,我有以下代码

 

ItfResidentTransactions2_0 paymentExport = new ItfResidentTransactions2_0();

< span style ="font-size:11pt; font-family:" Calibri"," sans-serif""> ServicePointManager.CertificatePolicy = new Common.TrustAllCertificatePolicy();

paymentExport.Url = integrationDtls.ClientWSURL; // wsURL;

paymentExport.Timeout = System.Threading.Timeout.Infinite;

推荐答案

(1)您的PC(运行在其上的客户端应用程序)是否位于代理服务器/防火墙之后。尝试通过"打开"连接消费服务。

(2) )服务是否期望从您这边进行任何类型的身份验证..?
(3)您是否公开了数量巨大的数据。可能是请求超时的原因。

(1) Is your PC, the client app running on which, is behind proxy server/firewall. Try consuming service over an "open" connection.
(2) Is the service expecting any kind of authentication from your side..?
(3) Are you exposrting the data which is huge in size. Possible reason that the request is timing out.

检查这是否可以为您提供帮助。

-------------------------- -------------------------------------------------- -------------------------------------------------- -----------------

问候,

Anirudha

(如果这篇文章回答你的话问题,请将其标记为答案。或者如果有帮助,请将其投票为有用。)

-------------------- -------------------------------------------------- ----------------------------------- --------------------------------------

Check if this can be of your help.
-----------------------------------------------------------------------------------------------------------------------------------------------
Regards,
Anirudha
(If this post answers your question, please mark it as an answer. OR If it is helpful, then vote it as helpful.)
-----------------------------------------------------------------------------------------------------------------------------------------------

  ;

 


这篇关于SOAP WebService调用错误:基础连接已关闭:服务器已关闭预期保持活动状态的连接。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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