wcf服务 winform 无法满足对安全令牌的请求,因为身份验证失败
客户端
<?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_ISystemService" 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="false" /> <security mode="Message"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" /> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="http://192.168.10.120:8732/Host/SystemService/" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ISystemService" contract="SystemClient.ISystemService" name="WSHttpBinding_ISystemService"> <identity> <dns value="localhost" /> </identity> </endpoint> </client> </system.serviceModel></configuration>
服务器端
<?xml version="1.0" encoding="utf-8" ?><configuration> <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="Host.SystemServiceBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration="Host.SystemServiceBehavior" name="Host.SystemService"> <endpoint address="" binding="wsHttpBinding" contract="Host.ISystemService"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://192.168.10.120:8732/Host/SystemService/" /> </baseAddresses> </host> </service> </services> </system.serviceModel></configuration>
- 1 回答
- 0 关注
- 850 浏览
添加回答
举报
0/150
提交
取消