简体   繁体   English

SOAP 消息传递需要 HTTP Content-Type 标头,但未找到

[英]An HTTP Content-Type header is required for SOAP messaging and none was found

maybe you could help me.也许你可以帮助我。 i am trying to use wcf to transfer a string between client and server.我正在尝试使用 wcf 在客户端和服务器之间传输字符串。 most of the time it is working.大多数时间它都在工作。 but at some clients (one on particular) i received the following error "An HTTP Content-Type header is required for SOAP messaging and none was found".但是在某些客户端(特别是一个客户端)上,我收到以下错误“SOAP 消息传递需要 HTTP Content-Type 标头,但没有找到”。 1. is this an error that returns from the server side ? 1.这是从服务器端返回的错误吗? 2. how can this be fixed ? 2. 如何解决这个问题?

Thanks in advance G.在此先感谢 G。

I recently had this issue.我最近有这个问题。 It turned out it is caused by the Azure web app load balancer time out原来是 Azure Web 应用负载均衡器超时造成的

https://feedback.azure.com/forums/169385-web-apps/suggestions/36572656-make-web-app-timeout-of-230-seconds-configurable https://feedback.azure.com/forums/169385-web-apps/suggestions/36572656-make-web-app-timeout-of-230-seconds-configurable

Because the server took longer than 230 seconds to process the request, so before the web service return the response, the load balaner will timeout and cut the TCP connection caused the ticket client receve a ProtocolException with the message:因为服务器处理请求的时间超过了 230 秒,所以在 Web 服务返回响应之前,负载均衡器将超时并切断 TCP 连接,导致票证客户端收到带有消息的 ProtocolException:

An HTTP Content-Type header is required for SOAP messaging and none was found. SOAP 消息传递需要 HTTP Content-Type 标头,但没有找到。

Since we can not control or configure that timeout settings, eventually I have to modify the service to make the process shorter than 230 seconds.由于我们无法控制或配置该超时设置,最终我必须修改该服务以使该过程短于 230 秒。

I've fixed this problem.我已经解决了这个问题。 I've increased WCF service server CloseTimeout Binding property to 5 minutes from default 1. It's server side problem.我已将 WCF 服务服务器 CloseTimeout Binding 属性从默认值 1 增加到 5 分钟。这是服务器端问题。

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

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