基本 WCF 程式設計Basic WCF Programming

本節提供建立 Windows Communication Foundation (WCF)應用程式的基本概念。This section presents the fundamentals for creating Windows Communication Foundation (WCF) applications.

本章節內容In This Section

基本程式設計週期Basic Programming Lifecycle
描述設計、建立和部署 WCF 服務和用戶端應用程式的生命週期。Describes the lifecycle of designing, building, and deploying WCF service and client applications.

設計與實作服務Designing and Implementing Services
說明如何設計和實作服務合約、選擇訊息交換模式、指定錯誤合約,以及其他服務的基本部分。Describes how to design and implement a service contract, choose a message exchange pattern, specify a fault contract, and other basic aspects of services.

設定服務Configuring Services
描述如何設定 WCF 服務以支援合約需求、自訂本機執行時間行為,以及指示發行服務的位址。Describes how to configure a WCF service to support the contract requirements, customize local runtime behavior, and indicate the address to publish the service.

裝載服務Hosting Services
說明在應用程式中裝載服務的基本概念。Describes the basics of hosting services in an application.

建置用戶端Building Clients
描述如何從服務取得中繼資料、將其轉換成 WCF 用戶端程式代碼、處理安全性問題,以及建立、設定和裝載 WCF 用戶端。Describes how to obtain metadata from services, convert that into WCF client code, handle security issues, and build, configure, and host a WCF client.

擴充性簡介Introduction to Extensibility
說明如何擴充 WCF 來建立自訂解決方案。Describes how to extend WCF to create custom solutions.

WCF 疑難排解快速入門WCF Troubleshooting Quickstart
說明某些最常發生的問題、解決這些問題的方法,以及如何尋找更多相關問題的資訊。Describes some of the most common issues that occur, what you can do to solve them, and where to locate more information about the issue.

WCF 與 ASP.NET Web APIWCF and ASP.NET Web API
討論這兩項技術、彼此的關聯性和使用時機。Discusses the two technologies, how they relate to each other, and when to use them.

參考資料Reference

System.ServiceModel

System.ServiceModel.Channels

System.ServiceModel.Description

系統需求System Requirements

概念性概觀Conceptual Overview

快速入門教學課程Getting Started Tutorial

方針及最佳做法Guidelines and Best Practices

Windows Communication Foundation 工具Windows Communication Foundation Tools

Windows Communication Foundation (WCF)範例Windows Communication Foundation (WCF) samples

使用者入門Getting Started

使用內嵌程式碼的 IIS 裝載IIS Hosting Using Inline Code

自我裝載Self-Host