In the previous section, "WCF Distributed Framework Basics" we introduced the concept and communication framework model of WCF services, and gave the implementation code of WCF programs based on custom managed services. Consider the managed hosting service configuration and the Client Add reference in the WCF Distributed development project. Two links are the most error-prone. For most people who want to learn about WCF distributed development, it is difficult to successfully develop, configure, and deploy your first WCF service. A lot of information introduces the basic concepts of WCF. However, the introduction of the actual project development process is sketchy, to bring many inconvenience to beginners. Today we are going to add a section of WCF distributed development and a complete solution development and configuration process. The basic structure of this section is to first introduce the "1" WCF Service Solution's Project composition "2" WCF service development and configuration process, "3" Custom host development and configuration process "4" client's service reference and configuration process. "Summary" for you WCF distributed technology development enthusiasts, provide a development reference.
The 1 WCF service solution consists of the following projects:
1.1 "WCF Service:
Generally, WCF services consist of three parts:
Service class: Including service contract, Operation contract and data contract definition and realization;
Host: An application domain and process in which the service will run;
Endpoint: Used by the client to access the service.
Our solutions here include service class projects, hosting hosts, and simple client programs, structured as shown:
1.2 Client application:
In the previous section, we introduced the basic concepts of WCF, the WCF basic communication mechanism is based on SOAP messages, SOAP messages are based on the XML language, so WCF applications can communicate with other processes running in various context environments, and of course support data interaction across systems, cross-platform applications. A distributed application built on WCF can interact with all of the following programs:
WCF applications in different processes on the same Windows computer.
A WCF application on another Windows computer.
Applications built on other technologies, such as application servers built on Java 2 Enterprise Edition (EE), that support standard WEB services. These applications can run on Windows computers or on other operating systems, such as Sun Solaris, IBM's z/OS, or Linux.
Therefore, you can serve as the client's application without limiting its type, as long as you can resolve xml-based SOAP messages and communicate with the WCF server. NET platform We can create console applications, WinForm, Windows Services, ASP. NET applications to access and invoke WCF services. Here's a detailed introduction to customizing managed services, the development configuration of WCF solutions.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.