Summary and examples of typical WCF use cases (Internet, lan, anonymous, etc.)

Source: Internet
Author: User
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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.