WCF Project Practice

Source: Internet
Author: User

Recently, the WCF Service layer has been added to the CRM project to facilitate external customer data query and call center data exchange. The main content is as follows:

 

 

1. When the client references or updates the WCF, it needs the configuration in the host to enable the Mex metadata. It needs to be closed after the actual release.

 

2. For. nettcpbinding, the efficiency is relatively fast, but it is not interactive.

 

3. It applies to transmission security when communication between WCF and non-WCF. The nettcpbinding instance is as follows:

<Bindings>

<Nettcpbinding>

<Binding name = "nettcpbindingconfigration">

<Security mode = "transport">

<Transport clientcredentialtype = "Windows" protectionlevel = "encryptandsign"/>

</Security>

</Binding>

</Nettcpbinding>

</Bindings>

 

4. Use nettcpbinding to verify the user name and password on the client

Client. clientcredentials. Windows. clientcredential. Username = "XXXX ";

Client. clientcredentials. Windows. clientcredential. Password = "XXXX ";

 

 

The host can use to create a Windows service or

 

 

Here we will share with you the binding security settings:

Http://www.cnblogs.com/frank_xl/tag/WCF%e5%88%86%e5%b8%83%e5%bc%8f%e5% AE %89%e5%85%a8%e5%bc%80%e5%8f%91%e5% AE %9e%e8%b7%b5/

 

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.