Skip to content

Instantly share code, notes, and snippets.

@yaronn
Last active December 24, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaronn/6775810 to your computer and use it in GitHub Desktop.
Save yaronn/6775810 to your computer and use it in GitHub Desktop.
//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