根据规范,我必须通过数字签名的 HTTPS 公开服务。
我已经在 IIS 和 web.config 上配置了 HTTPS 服务,并且该部分正在工作。
我正在使用 basicHttpBinding 'cos 服务必须使用 SOAP 1.1
网络配置:
<services>
<service name="Namespace.MyService"
behaviorConfiguration="TestServiceBehaviour">
<endpoint address="https://url/TestService.svc"
binding="basicHttpBinding"
bindingConfiguration="TestServiceBinding"
contract="Namespace.IMyService" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="TestServiceBinding">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="TestServiceBehaviour">
<serviceMetadata httpsGetEnabled="True"/>
<serviceDebug includeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
</endpointBehaviors>
</behaviors>
但我坚持签署部分。
netTcpBinding 可以使用 Sign 作为 protectionLevel。
是否可以使用 basicHttpBinding 做类似的事情?