调用WCF Web服务时出现问题 [英] Problem in calling WCF Web Service

查看:102
本文介绍了调用WCF Web服务时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

An error occurred while receiving the HTTP response to https://XYZ.com/ABCEndpoint/.
This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.





任何人都知道可能出现的问题,因为此错误仅在某些时候出现在Web服务中正确响应...它与缓冲区大小有什么关系..



Any one has idea what might be going wrong as this error comes some time only some times web service responds properly...Does it has any thing to do with buffer sizes..

推荐答案

最有可能的是,因为它有时工作,你可能也在发送或接收很多数据。您需要在服务器端和客户端配置上进行调整,以更改HTTP将发送和/或接收的最大有效负载。这将是我首先看到的地方,因为它可以是一个快速的测试。但是,这不是唯一的可能性。



网上有很多这样的问题,而且还有很多一些非常好的建议。以下是我发现的一对夫妇:



http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/686499d2-5e31-47ee-941b-760264472875/ [< a href =http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/686499d2-5e31-47ee-941b-760264472875/target =_ blanktitle =New Window> ^ ]



http://stackoverflow.com/questions/7325387/an-error-occurred-while-receiving-the-http-response [ ^ ]
Most likely, since it is working sometimes, you probably are sending or receiving too much data. You will need to make adjustments on both your server-side and your client-side configs to change the maximum payload that HTTP will send and/or receive. This would be the place I would look first, just because it can be a quick thing to test. However, it isn''t the only possibility.

There are a number of questions like this on the web, and there are quite a few with some really good advice. Here are a couple I found:

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/686499d2-5e31-47ee-941b-760264472875/[^]

http://stackoverflow.com/questions/7325387/an-error-occurred-while-receiving-the-http-response[^]


这篇关于调用WCF Web服务时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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