我已经为我的 WCF 客户端(调用 SOAP 服务)放置ProtectionLevel = ProtectionLevel.None
了ServiceContract
,但 WCF 仍在向标头添加签名。
[ServiceContract(ConfigurationName = "IMyOutboundService", ProtectionLevel = ProtectionLevel.None)]
如何关闭此客户端的标头签名?
我正在使用customBinding
withauthenticationMode="MutualCertificate"
并且我已经设置了<textMessageEncoding messageVersion="Soap11WSAddressing10"/>
. 只要允许,我可以使用不同的绑定。
这是当前的完整绑定:
<binding name="MyBinding" openTimeout="00:00:10" sendTimeout="00:00:10" >
<textMessageEncoding messageVersion="Soap11WSAddressing10" />
<security authenticationMode="MutualCertificate"
includeTimestamp="true"
enableUnsecuredResponse="true">
<localClientSettings timestampValidityDuration="00:15:00"/>
</security>
<httpsTransport
manualAddressing="false" maxBufferPoolSize="524288"
maxReceivedMessageSize="5242880" allowCookies="false"
bypassProxyOnLocal="true" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="true" maxBufferSize="5242880"
realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" requireClientCertificate="true" />
</binding>