In Chapter 1,you were introduced to fundamental WCF concepts, 在章节1中,学习了wcf中的基础概念including how to create and consume a service, 包括如何创建以及调用服务how to host a service and expose endpoints where it can be reached by clients, 如何托管服务,使得客户端可以…
While messaging protocols are responsible for message serialization formats,there must be a way to capture the protocols required to communicate between clients and services. In Chapter 1,you worked with WSDL documents,which describe the requirements…
A data contract describes how CLR types map to XSD schema definitions. Data contracts are the preferred way to enable serialization of complex types included in operation signatures as parameters or return values. You create a data contract by applyi…
A service contract describes the operations supported by a service,the message exchange pattern they use,and the format of each message. The service contract is also the main driver for generating a service description. A valid WCF service implements…
So far I’ve talked about the standards behind it all,but in fact WCF hides most of this from the developer by providing a programming interface for designing service contracts and controlling the message format. Application messaging requirementsare…
In the previous lab,you created a service and client from scratch without leveraging the tools available to WCF developers. Although this helps you to understand the raw requirements for sending messages between clients and services,in reality,develo…
How messages reach a service endpoint is a matter of protocols and hosting. IIS can host services over HTTP protocol,the Windows Activation Service (WAS) can support others such as TCP and named pipes,and self-hosting can support many protocols and i…
You’re about to be introduced to the WCF service. This lab isn’t your typical “Hello World”—it’s “Hello Indigo”! In this lab,you will learn how to build a new WCF service and in the process learn the minimum requirements of service development and co…
SummaryThis chapter covered a lot of ground,beginning with a look at the purpose of WCF,the problems it solves and its alignment with SOA,through discussion of the fundamentals developers should know before they begin working with WCF. I also touched…
So far in this chapter,I have shown you different ways to create services,how to expose a service endpoint and metadata exchange endpoint,how to generate client proxies,how to work with metadata,and how to configure service behaviors. In this section…