Windows Communication Foundation (WCF) extends .NET Framework to enable building secure, reliable & interoperable Web Services.
WCF demonstrated interoperability with using the Web Services Security (WSS) including UsernameToken over SSL, UsernameToken for X509 Certificate and X509 Mutual Certificate profiles.
WSE has been outdated and replaced by WCF and has provided its own set of attributes that can be plugged into any Web Service application.
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"><system.serviceModel><services><servicetype="WCFService"name="WCFService"behaviorConfiguration="ServiceBehaviour"><endpointcontract="IWCFService"binding="wsHttpBinding"bindingConfiguration="WSHttpBinding_IWCFServiceBinding"/></service></services><bindings><wsHttpBinding><binding name="WSHttpBinding_IWCFServiceBinding"><security mode="Message"><message clientCredentialType="UserName" /></security></binding></wsHttpBinding></bindings><behaviors><behavior name="ServiceBehaviour" returnUnknownExceptionsAsFaults="true"><serviceCredentials><serviceCertificatefindValue="CN=SSW"storeLocation="LocalMachine"storeName="My"x509FindType="FindBySubjectDistinguishedName"/></serviceCredentials></behavior></behaviors></system.serviceModel></configuration>
Figure: Setting the SSL to Web Service for Message Layer Security