The basic ABC and endpoint of WCF. For common scenarios, if so many combinations are complex, select the appropriate method based on the specific scenario.
The book "programming WCF Services" (WCF Service Programming) summarizes this combination in detail, as follows:
[For basic WCF knowledge, refer to books or other materials]
Binding and security scenarios
Bind |
Lan scenario |
Internet |
B2BScenario |
Anonymous scenarios |
No security scenarios |
basichttpbinding |
NO |
NO |
Yes |
NO |
Yes |
nettcpbinding |
Yes |
Yes |
NO |
Yes |
Yes |
netpeertcpbinding |
NO |
NO |
NO |
NO |
Yes |
netnamedpipebinding |
Yes |
NO |
NO |
NO |
Yes |
wshttpbinding |
NO |
Yes |
Yes |
Yes |
Yes |
wsfederationhttpbinding |
NO |
NO |
NO |
NO |
|
wsdualhttpbinding |
NO |
Yes |
Yes |
Yes |
Yes |
Netmsmqbinding |
Yes |
No |
No |
Yes |
Yes |
Security Scenario features
features |
LAN scenario |
Internet |
B2B scenario |
anonymous scenarios |
no security scenarios |
transport |
Yes |
NO |
NO |
NO |
NO |
message |
NO |
Yes |
Yes |
Yes |
NO |
service authentication |
Windows |
ceritificate |
ceritificate |
ceritificate |
NO |
client authentication |
Windows |
Asp. net |
ceritificate |
NO |
NO |
authorization |
Windows |
Asp. net |
NO/asp. net |
NO |
NO |
Impersonation |
Yes |
No |
No |
No |
No |
Implementation reference
This book describes a declaration-based framework class library, which can be used to easily create applications that are not used in the preceding scenarios. Based on this, I implemented a demo demonstration, this process provides a deep understanding of WCF and is useful for getting started and quick use of group members.
Demo: http://cid-56b433ad3d1871e3.office.live.com/self.aspx/.Public/ProgWCF.rar
Detailed Operation ReferenceCodeReadme.txtAnd annotations
Intranet |
Transport Protection Use TCP binding Windows Integrated Security |
Internet |
Only message-based protection is supported. A digital certificate is required. TCP wshttp binding Use membership for Security Authentication |
Anoymous |
Digital certificates are required for message-based protection. TCP wshttp binding |
None |
Messages are not protected Http tcp wshttp binding |
B2B |
Basichttpbinding wshttpbinding wsdualhttpbinding |
Reference: programming WCF services [ISBN: 978-0-596-80548-7]