【发布时间】:2012-09-11 13:59:31
【问题描述】:
我有一个通过 HTTPS 接受消息的自托管 WCF 服务。
正在从接收响应的 Java 应用程序发送消息:
HTTP/1.1 413 Request Entity Too Large
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 19 Sep 2012 09:05:34 GMT
Connection: close
我没有尝试上传文件,只是发送一个 78kb 的 XML/SOAP 消息。我尝试增加我的最大消息和缓冲区大小,但无济于事。
<binding name="SecuredNoProxy" openTimeout="00:00:10" sendTimeout="00:00:10">
<textMessageEncoding messageVersion="Soap11WSAddressing10" />
<security includeTimestamp="true" enableUnsecuredResponse="true">
<localClientSettings timestampValidityDuration="00:15:00" />
</security>
<httpsTransport manualAddressing="false" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" allowCookies="false" bypassProxyOnLocal="true" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard" keepAliveEnabled="true" realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false" useDefaultWebProxy="false" requireClientCertificate="true" />
</binding>
如果我可以提供任何其他信息,请告诉我。
WCF 跟踪日志
在连接“https://localhost”时接收字节
活动边界(开始)
连接信息
抛出异常(错误)
例外是:
System.ServiceModel.ProtocolException, System.ServiceModel, Version=4.0.0.0, Culture=neutral
【问题讨论】:
-
启用WCF Tracing 以查看消息是否正在被 WCF 处理。该消息看起来像是来自 HTTP 主机组件,而不是 WCF 管道。
-
@SixtoSaez - 我已添加 WCF 跟踪日志信息。
标签: c# wcf https self-hosting