SecurityNegotiationException:调用程序未经过服务身份验证。 [英] SecurityNegotiationException: The caller was not authenticated by the service.

查看:81
本文介绍了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.org ...

客户端配置:

I have tested with same using soapUI, it gives error
"The message could not processed. This is mostly because the action http://tempuri.org..."
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="http://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:调用程序未经过服务身份验证。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆