根据规范,我必须通过经过数字签名的HTTPS公开服务。
我已在IIS和web.config上配置了HTTPS服务,该部分正在运行 我正在使用basicHttpBinding'cos服务必须使用SOAP 1.1
的web.config:
<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做类似的事情?