Web服务返回此错误,我尝试了几乎所有的东西,但仍然无法修复它。
无法处理该消息。这很可能是因为操作“http://tempuri.org/IGazlarOrtak/EkstreSorgulama”不正确,或者消息包含无效或过期的安全上下文令牌,或者绑定之间不匹配。如果服务由于不活动而中止通道,则安全上下文令牌将无效。若要防止服务过早中止空闲会话,请增加服务终结点绑定的接收超时。
以下是我的设置:
<wsHttpBinding>
<binding name="wsHttpEndpoint" maxBufferPoolSize="2000000" maxReceivedMessageSize="2000000" receiveTimeout="00:10:00">
<readerQuotas maxDepth="2000000" maxStringContentLength="2000000" maxArrayLength="2000000" maxBytesPerRead="2000000" maxNameTableCharCount="2000000"/>
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" />
<message clientCredentialType="UserName" />
</security>
</binding>
</wsHttpBinding>
个字符
1条答案
按热度按时间snvhrwxg1#
您可以在Message下添加establishSecurityContext=“false”,这将禁用SCT协商,并直接使用每条消息的凭据。
字符串