本文介绍了SecurityNegotiationException:调用程序未经过服务身份验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用第三方服务URL开发应用程序。从我的Windows应用程序中使用服务时,得到如下例外
I am developing an application using a third party service URL. While consume the service from my windows application, got an exception as follows
"SecurityNegotiationException: The caller was not authenticated by the service."我使用soapUI进行了相同的测试,它给出了错误 消息无法处理。这主要是因为行动http://tempuri ... 客户端配置:
I have tested with same using soapUI, it gives error "The message could not processed. This is mostly because the action tempuri..." Client config:
<system.serviceModel> <diagnostics> <messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" /> </diagnostics> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IEVoucherSvc" 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="thirdparty:port/Service.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IEVoucherSvc" contract="WCFSerRefer.IEVoucherSvc" name="WSHttpBinding_IEVoucherSvc"> <identity> <dns value="localhost" /> </identity> </endpoint> </client> </system.serviceModel>提前致谢..
Thanks in advance..
推荐答案为什么dns值是localhost ?? 删除idetity标签或添加正确的dns值(服务器名称)。 TIA Why the dns value is localhost?? Remove idetity tag or add proper dns value (server name). TIA
更多推荐
SecurityNegotiationException:调用程序未经过服务身份验证。
发布评论