WCF 4 includes exciting improvements like simplified configuration, discovery, routing services and web HTTP programming. In this session we will explore those features and many more goodies that WCF 4 has to offer, and learn how to design and use the enhanced WCF 4 infrastructure.
5. Kind Attribute
• Set the type of the standard endpoint
<service name="HelloService">
...
<endpoint binding="webHttpBinding" contract= "IService1"
kind= "webHttpEndpoint" />
<endpoint kind="mexEndpoint" /> No need in
<endpoint kind="webHttpEndpoint" /> bindingConfiguration
</service> endpointConfiguration
6. Custom Standard Endpoint
• Standard endpoint must be registered in the
<endpointExtensions> section.
<system.serviceModel>
<service name="HelloService">
<endpoint kind= "udpDiscoveryEndpoint" />
</service>
<extensions>
<endpointExtensions>
<add name="udpDiscoveryEndpoint" type="..." />
</endpointExtensions>
</extensions>
</system.serviceModel>
22. Error Handing
• You can define different lists of alternate endpoints that will be
used if communicating with the initial target endpoint results in
an error.
<routing>
...
<filterTable name="MyroutingTable">
<add filterName ="f1"
endpointName ="t1"
backupList ="altEndpoints" />
</filterTable>
...
<backupLists>
<backupList name="altEndpoints">
<add endpointName="CalculatorService2"/>
</backupList>
</backupLists>
</routing>