Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. What's New in WCF 4 > Default Bindings

2.5. Default Bindings

As mentioned, an endpoint comprises three pieces of information: an address, abinding, and a contract. The address is the location that the application hosting the service uses to advertise the service. The binding element specifies items such as the transport mechanism used to access the service and the protocol to use, among others. For each service contract that the service implements, WCF 4.0 by default provides one endpoint per base address that is currently configured within the host. This is good, but these endpoints also take default bindings with them. This means that there must be some mapping that the framework uses to know which binding to use for each different base address that's configured. You can see an example of this with the ProtocolMapping section in machine.config file, shown in Figure 2-5.

Open the App.config file defined earlier in this chapter in the WCF Configuration Editor. Go to the ProtocolMapping section, and you will find four schemes associated with the specific binding.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint