Posts

Showing posts from July, 2009

Hosting a WCF Service

WCF is flexible because its services can be hosted in different types of applications. The following lists several common scenarios for hosting WCF services: Self-hosting Managed Windows Service IIS (II6 and IIS7) WAS

WCF contracts

WCF contracts define the behavior of WCF services. They are created in code by service developers, and are exposed to clients in the service metadata. The five types of contracts: Service Contracts Operation Contracts Data Contracts Message Contracts Fault Contracts Slide 23 § 1.A service contract defines the operations that a service supports, and maps to a portType in Web Service Description Language (WSDL). Service contracts are implemented as .NET Framework interfaces that are annotated with the ServiceContract attribute. [ServiceContract] public interface IMyContract { ...} 2.Operation contracts define the individual operations that a service supports and map to operations in WSDL. Operations are defined by adding methods to a Service Contract interface that is annotated with the OperationContract attribute. [OperationContract] void SomeOperation(); 3.Data contracts define how complex types are serialized when they are used in WCF s

Windows Communication Foundation is...

Some Important points I have collected from MSDN site are: A part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise. The global acceptance of Web services, which includes standard protocols for application-to-application communication, has changed software development. For example, the functions that Web services now provide include security, distributed transaction coordination, and reliable communication. The benefits of the changes in Web services should be reflected in the tools and technologies that developers use. Windows Communication Foundation (WCF) is designed to offer a manageable approach to distributed computing, broad interoperability, and direct support for service orientation. WCF simplifies development of connected applications through a new service-oriented programming model. WCF supports many styles of distributed application development by pr