WCF Quick Start - Designing Service Contracts The first step in creating WCF service is to define the Service Contract . Each service in WCF consists of endpoints, and each endpoint consists of an address, a binding, and a contract. Contracts of web services consists from set WSDL and XSD documents. In WCF , contract are a set of .NET type definitions annotated with special attributes, which can be turned into a set of WSDL and XSD documents. There are three types of contracts in WCF : Service Contract...
The .NET Framework 3.5 include support for web development using WCF. In this post I will show how to create template based URI and to use them. UriTemplate and UriTemplateMatch types A UriTemplate is composed of two parts: a path and a query. The following examples show valid templates: finance/nasdaq/quote finance/{market}/{quote} finance/* finance/{market}/{quote}?s=MSFT finance/{market}/{quote}?s={ticket} Elemets of the query must consists of pairs: s=MSFT or s={ticket}. The following sample...
Creating Durable Services in WCF 3.5 The .NET Framawork 3.5 includes support for WCF durable services, which use the WF persistence model to persist the state of a service. Those services are designed to be durable and long running, and to survive application and server restarts. In this post I will show a way to store the context at the client side. Long Running and Application/Server restarts When the client initiates the conversation with the service, the framework persist the state after the...