Last active
December 24, 2015 09:09
-
-
Save yaronn/6775810 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//see full information and possible error messages here: | |
http://webservices20.blogspot.co.il/2012/06/12-common-wcf-interop-confusions.html | |
//This is the most common WCF security setting for interoperability | |
<customBinding> | |
<binding name="NewBinding0"> | |
<textMessageEncoding messageVersion="Soap11" /> | |
<security authenticationMode="MutualCertificate" includeTimestamp="false" | |
messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"> | |
<secureConversationBootstrap /> | |
</security> | |
<httpTransport /> | |
</binding> | |
</customBinding> | |
//make sure to decorate your contract to sign only: | |
[System.ServiceModel.ServiceContractAttribute(ConfigurationName=..., ProtectionLevel=System.Net.Security.ProtectionLevel.Sign)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment