相关疑难解决方法(0)

BasicHttpBinding vs WsHttpBinding vs WebHttpBinding

在WCF中,有几种不同类型的基于HTTP的绑定:

这3个有什么不同?

特别是在功能/性能和兼容性方面有何不同?

basichttpbinding wcf-binding wshttpbinding webhttpbinding

291
推荐指数
1
解决办法
16万
查看次数

WCF身份验证的问题

我有一个非常简单的WCF服务,我想公开公开.我创建了这项服务并将其设置在我们的服务器上,没有太多麻烦.问题是我们能够在我们的专用网络中使用该服务,但是当我们尝试从网络外部使用它时,会抛出以下错误:

安全支持提供程序接口(SSPI)协商失败.

我做了一些研究,听起来像WCF默认使用Windows身份验证.我想改变它以不使用身份验证,但我不完全确定如何.这是我的配置现在的样子.

<system.serviceModel>
    <services>
        <service behaviorConfiguration="XX.ZZ.WebService.MyServiceBehavior"
         name="XX.ZZ.WebService.MyService">
            <endpoint  address="" binding="wsHttpBinding" contract="XX.ZZ.WebService.IMyService">
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
        </service>
    </services>
    <behaviors>
        <serviceBehaviors>
            <behavior name="XX.ZZ.WebService.MyServiceBehavior">
                <serviceMetadata httpGetEnabled="true" />
                <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
        </serviceBehaviors>
    </behaviors>
</system.serviceModel>
Run Code Online (Sandbox Code Playgroud)

我会很感激一些指示,或者在正确的方向上轻推.

.net wcf exception-handling wcf-binding wcf-security

1
推荐指数
1
解决办法
5933
查看次数