11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 3 ■ EXPLORING THE WCF PROGRAMMING MODEL 57ramrameshreddy.blog.comBase AddressesWCF supports base addresses, which enables you to host multiple endpoints under the samebase address and which shortcuts the duplication of the scheme, host, port, and root path inyour configuration. To define two endpoints in a WCF configuration, you would add the followingsection to express QuickReturns Ltd.’s base address:This allows you to define the following endpoints:What Are Bindings?A binding defines how you can communicate with the service and as such has the biggestimpact in the programming model of WCF. It is the primary extension point of the ABCs ofWCF. The binding controls the following:• The transport (HTTP, MSMQ, Named Pipes, TCP)• The channels (one-way, duplex, request-reply)• The encoding (XML, binary, MTOM…)• The supported WS-* protocols (WS-Security, WS-Federation, WS-Reliability,WS-Transactions)ramrameshreddyramrameshreddyWCF provides a default set of bindings that should cover most of your requirements. If thedefault bindings don’t cover your requirements, you can build your own binding by extendingfrom CustomBinding.Table 3-2 shows the features of each default binding that comes with WCF. As you can see,these features directly relate to the transport protocols, the encoding, and the WS-* protocols.The Configuration and Element columns relate to the configuration element in the applicationinteroperability, the Transactions and Security Default Session columns relate to severalof the WS-* protocols described in Chapters 1 and 2. The Duplex column specifies whether the

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!