SecurityNegotiationException:调用程序未经过服务身份验证。

编程入门 行业动态 更新时间:2024-10-12 05:44:47
本文介绍了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:调用程序未经过服务身份验证。

本文发布于:2023-11-28 12:23:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642380.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   程序   SecurityNegotiationException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!