C # Service-oriented programming technology WCF from introductory to combat walkthrough

Source: Internet
Author: User
Tags managed hosting

I. Introduction to WCF Courses

1.1. Will Web service be replaced by WCF?

The answer to this question is: there are new and old features in the two, but for a particular system, it is the best for them. It is not possible to compare a technical framework with an industry standard, and any comparison between the two is wrong, since the roots are not in the same category. It's a myth that you can't compare a car to a traffic law.

The purpose of a stupid is to learn this "C # Service-oriented programming technology WCF from the start to the real-world Walkthrough" Course, let you start from the Zero Foundation to directly apply the results of learning to the actual project. This share of the WCF technology is entirely from the real project, how to let the zero-based children's shoes quickly get started and use WCF technology! make you feel that using WCF technology is as gracious as Webserice, making the "call" of a WCF client a "pleasure"!

WCF is definitely a technology worth learning, and if you delve into it, it's really not easy!

If you are interested in this sharing lesson, then please study with AH-stupid. Needless to say, directly on dry goods, we do not produce dry goods, we are just dry goods porter.

Ii. What is the difference between WebService and WCF?

WebService : Technically, the WebService specification, also known as the WS-* specification, is neither a framework nor a technology. It has a complete set of standard system standards, but also in the continuous improvement of the update. It uses XML extension markup language to represent data (this is the key to language and platform). Microsoft's Web service implementation is called Asp.netwebservice. It uses the SOAP simple Object Access protocol to implement data interactions between applications in a distributed environment. WSDL to implement a service interface-related description. In addition, webservices can be registered with the UDDI Center for use by its customers. Later, Microsoft did Asp.netwebservice security, performance, data encryption, decryption, managed hosting, and many other extensions, called the WSE series, which is over-product, up to WSE3.0. And then it was the WCF era.

WCF : WCF is a development framework for a distributed application that belongs to a specific technology, or platform. Neither the standard nor the norm.

WCF is, in part, an ASP. NET Web Service, because it supports WebService's industry standards and core protocols, So what Asp.netwebservice and WSE can do, WCF is almost as competent, cross-platform and language is not a problem (the data also supports XML formatting and provides its own formatter).

WCF, as Microsoft's main push for a communications component or platform, aims not only to support and integrate WebService, because it is also compatible and features many of Microsoft's early technologies.

Five, the source code online demonstration and interpretation

5.1, C # WCF commonly used basichttpbinding and wshttpbinding two kinds of binding method learning.

5.2. How C # WCF makes unified portal calls in an elegant way (that is, WCF client calls are transparent proxies).

5.3. C # WCF uses X509 Certificate Basic authentication.

5.4. How to implement WCF hybrid access (support both HTTP and TCP) in a real-time walkthrough.

A client call to a WCF service can be added by adding a service reference, which is relatively simple to use and suitable for small projects. The server-side coupling is deeper than the server, and adding a service reference generates a lot of bloated files. This example explores a way to use a WCF service using an interface to overcome the drawbacks of using a service reference. At the same time hopefully, explore a better way to use WCF.


WCF Combat Walkthrough


WCF-Hybrid access



View Address Online


If you don't believe it, sweep it.


C # Service-oriented programming technology WCF from introductory to combat walkthrough

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.