June 2008 Entries

WCF: Main Types: Outline

Notes · Bindings are spread across several namespaces. · DataContractAttribute is placed in the System.Runtime.Serialization namespace not in the System.ServiceModel namespace. · Configuration sections are spread across several namespaces. · ClientSection and ServicesSection: First has the structure client/endpoint, the second – services/service/endpoint. Asymmetric. System.ServiceModel.dll System.ServiceModel · ServiceHost · ChannelFactory<TChannel> · ClientBase<TChannel> Contracts: ......

WCF: Set up environment to use Transport level security (SSL)

We should install the certificate to the server that hosts the services with Transport level security. For tests we could use the self-made certificate, for production we recommend to use the certificate issued by the industrial certificate provider as the VeriSign. 1. Install Microsoft .NET Framework 2.0 Software Development Kit (SDK) (x64) [http://www.microsoft.com/d... It is installed by default to the "C:\Program ......

WCF: Data contract names: don't use names with "Response" and "Request" suffixes!

After creating simple WCF service I've got strange errors (see below). The issue was in the names of the response messages. I used the simple custom rule to name request and response messages (.NET DataContract classes): <OperationName>Request and <OperationName>Response For instance I created GetTokenResponse class for the response message of the GetToken operation. And this is the wrong rule! Why? Because the WCF creates these names for the WSDL metadata files: For instance I've got: ......