提问人:mhmtensyldrm 提问时间:11/10/2023 最后编辑:mhmtensyldrm 更新时间:11/14/2023 访问量:143
如何修复 Web 服务上的“无法处理消息”错误
How to fix "The message could not be processed" error on web service
问:
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>
<endpoint address="https://webservice.halkbank.com.tr/EkstreWebServis.svc"
binding="wsHttpBinding" bindingConfiguration="wsHttpEndpoint"
contract="HalkbankWService.IGazlarOrtak" name="wsHttpEndpoint" />
答:
0赞
QI You
11/14/2023
#1
您可以在 Message 下添加 establishSecurityContext=“false”。这将禁用 SCT 协商,并直接使用每封邮件的凭据。
<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" establishSecurityContext=“false” />
</security>
</binding>
</wsHttpBinding>
评论
0赞
mhmtensyldrm
11/14/2023
我也试过了,但它没有解决问题..
评论