- Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications
- Steven Cheng
- 374字
- 2021-04-13 17:04:03
In this chapter, we will cover:
- Configuring Default Endpoints
- Setting up two-way communication over MSMQ
- Building a Publish-Subscribe service with dual binding
- Creating a multiple-endpoint service
- Implementing a POX HTTP service
- Defining a
CustomBinding
without a timestamp header - Suppressing
mustUnderstand
validation on unknown SoapHeaders - Sharing a physical address between multiple endpoints
WCF services are exposed through service endpoints, which provide the basic access point for client to utilize the functionality offered by a given WCF service. Service endpoints consist of ABC and a set of behaviors. What is ABC? Well, A stands for Address, which tells service consumers “Where is the service?”, B stands for Binding, which describes “How to talk to the service?” and C stands for Contract, which shows “What functionality can the service provide?”
WCF provides plenty of built-in bindings (such as BasicHttpBinding, NetTcpBinding, NetMsmqBinding, and so on), which can help developers host service endpoints over various transport protocols. Behaviors also play an important role in WCF. By using behaviors, we can gain further manipulation over the WCF service at service or endpoint level.
This chapter provides eight recipes on using the built-in binding and behaviors to build various service endpoints, which represent some of the useful scenarios in general WCF service development. We will start from the Default Endpoint feature introduced in WCF 4.0. Then, we will use two built-in bindings (NetMsmqBinding and WSDualHttpBinding) to demonstrate how to build a two-way communication and build a Publish-Subscribe pattern service through system bindings. The fourth recipe shows how WCF allows a single service to expose multiple endpoints layered on heterogeneous transport and message settings. The fifth recipe demonstrates how to build a POX-style WCF service that can talk with the application, which only supports plain XML-based message communication. The last three recipes come from some common and tricky scenarios in service endpoint customization. The sixth recipe shows how to disable the replay detection and remove a timestamp header in a WCF-generated SOAP message, the seventh recipe demonstrates how to make a WCF service/client tolerant to anonymous SoapHeaders, and the final recipe provides an example of how to make multiple WCF endpoints share a single transport address.
- Flash CC中文版動畫設計與制作/微課堂學電腦
- CAXA CAD電子圖板2020工程制圖
- 從零開始學LATEX
- IBM Lotus Notes 8.5 User Guide: LITE
- VMware虛擬化與云計算:vSphere運維卷
- 剪映:短視頻剪輯/字幕/動畫/AI從新手到高手(手機版+電腦版)
- AI繪畫:Stable Diffusion從入門到精通
- Photoshop CC入門與進階
- Excel數據管理:不加班的秘密
- Instant Testing with QUnit
- Oracle Warehouse Builder 11g: Getting Started
- 中文版Illustrator 2020基礎教程
- 中文版3ds Max 2022基礎教程
- 構筑敏捷的開發團隊:微軟Visual Studio 2010實戰兵法
- AutoCAD 2024室內設計從入門到精通(升級版)