HttpTransportBindingElement httpTransport = new HttpTransportBindingElement(); // the message security binding element will be configured to require a credit card // token that is encrypted with the service's certificate SymmetricSecurityBindingElement messageSecurity = new SymmetricSecurityBindingElement(); messageSecurity.EndpointSupportingTokenParameters.SignedEncrypted.Add(new CreditCardTokenParameters()); X509SecurityTokenParameters x509ProtectionParameters = new X509SecurityTokenParameters(); x509ProtectionParameters.InclusionMode = SecurityTokenInclusionMode.Never; messageSecurity.ProtectionTokenParameters = x509ProtectionParameters; return new CustomBinding(messageSecurity, httpTransport);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)