[英]Problems with WCF reliable session (reliable messaging)
In our WCF application I am trying to configure reliable sessions. 在我们的WCF应用程序中,我试图配置可靠的会话。
Service: 服务:
<wsHttpBinding>
<binding name="BindingStabiHTTP" maxBufferPoolSize="524288"
maxReceivedMessageSize="2097152"
messageEncoding="Text">
<reliableSession enabled="true" ordered="true"
inactivityTimeout="00:10:00"/>
<readerQuotas maxDepth="0" maxStringContentLength="0"
maxArrayLength="0" maxBytesPerRead="0"
maxNameTableCharCount="0" />
</binding>
</wsHttpBinding>
Client: 客户:
<wsHttpBinding>
<binding name="BindingClientWsHttpStandard" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00"
sendTimeout="00:01:00" bypassProxyOnLocal="false"
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8"
useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384" maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="true" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows"
negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
Unfortunately I get an error which is as follows: No signature message parts were specified for messages with the ' http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence ' action. 不幸的是,我收到如下错误:没有使用' http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence '操作为消息指定签名消息部分。
If I disable the reliableSession on the client I get this message: The action is not supported by this endpoint. 如果在客户端上禁用了可靠会话,则会收到以下消息:该端点不支持该操作。 Only WS-ReliableMessaging February 2005 messages are processed by this endpoint.
该端点仅处理2005年2月WS-ReliableMessaging消息。
So it seems that the server is configured correctly for RM. 因此,似乎服务器已正确配置为RM。
I cannot find anything valuable about the error I get so I don't know how to fix this. 我找不到关于我得到的错误的任何有价值的信息,所以我不知道如何解决。 Any ideas what can be wrong?
有什么想法可能是错误的吗?
Thank in advance, 预先感谢,
Rob 抢
After starting a new test project that worked fine with RM I finally found the problem by comparing the configuration files. 在启动一个适用于RM的新测试项目后,我最终通过比较配置文件找到了问题。 It appeared that our service configuration did not specify the correct binding configuration:
看来我们的服务配置未指定正确的绑定配置:
<service behaviorConfiguration="somebehavior"
name="somename">
<endpoint address="" binding="wsHttpBinding"
bindingConfiguration="SomeBinding"
name="http"
contract="somecontract" />
<endpoint address="mex"
binding="mexHttpBinding"
bindingConfiguration=""
name="mex"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/somelibrary/someservice/" />
</baseAddresses>
</host>
</service>
This bindingConfiguration was empty. 此bindingConfiguration为空。 It then takes the default wsHttpBinding which is something different then the one specified (even if there is only 1).
然后,它将采用默认的wsHttpBinding,它与指定的默认值不同(即使只有1个)。
I think the security settings for client and server don't match. 我认为客户端和服务器的安全设置不匹配。
The client has: 客户有:
<security mode="Message">
<transport clientCredentialType="Windows"
proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
and the server has nothing at all..... 服务器根本没有任何东西.....
Can you try to have the same settings for both client and server? 您可以尝试为客户端和服务器设置相同的设置吗? Does it work then??
那行吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.