简体   繁体   English

服务器Web服务关闭时.Net Web服务客户端需要很长时间才能失败

[英].Net web service client takes long time to fail on call when server web service is down

I have a .Net web service client that consumes a Java web service. 我有一个使用Java Web服务的.Net Web服务客户端。 When the Java app server is down the client takes a long time to throw an exception. 当Java应用程序服务器关闭时,客户端将花费很长时间抛出异常。 I have redundant systems in place but for the best customer experience I need to know that the service is down quickly so I can fail over as fast as possible. 我已经安装了冗余系统,但是为了获得最佳的客户体验,我需要知道该服务已迅速关闭,因此我可以尽快进行故障转移。

Is there a setting on the client to make it time out faster when the service is down? 客户端上是否有一项设置可以使其在服务关闭时更快地超时?

The java service is a SOAP service running on JBoss. Java服务是在JBoss上运行的SOAP服务。

The client is a .Net 3.5 application. 客户端是.Net 3.5应用程序。

In your config file there should be a bindings section. 在您的配置文件中,应该有一个绑定部分。
You will see something like this : 您将看到类似以下内容:

<binding name="BasicHttpBinding_Service" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"

I believe these are the nodes you are looking for(*add star wars hand motion) 我相信这些是您要寻找的节点(*添加星球大战手势)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM