C # Remote Call technology WebService sunflower collection,

Source: Internet
Author: User

C # Remote Call technology WebService sunflower collection,
I. course Introduction

Let's get started directly. Before learning, I want to ask, do you really want to know about WebService Remote Process calling Technology (RPC? Don't talk to the old man about WebService technology. If you secretly tell you that I really don't know WebService, congratulations, because you have found this book "C # Remote Call technology WebService sunflower Collection" in this vast IT programming world! An unknown lecturer once said that an RPC technology would not, so tens of thousands of RPC technologies would not!

This lecture includes the following knowledge points.

1. Several call methods commonly used by C # WebService.

2. How does WebService use Asynchronous call. (Based on Asynchronous delegate BeginInvoke/EndInvoke, based on the delegate event mechanism, based on Async Task asynchronous programming mode)

3. How does C # WebService ensure secure access from the client.

4. C # dynamically create a WebService instance through Reflection.

5. basic use of Microsoft's lightweight IOC framework Unity.

Insert a hard advertisement here: the next course to share with you will bring you the stupid planC # Service-Oriented Programming Technology: from entry to practice.

If you want to shareInterestedIf so, please study with Jack. We don't need to talk much about it. We just need to get the dry goods directly. We don't make the dry goods, but we are just the porters of the dry goods.

II. C # WebService

2.1. Web References reference.

2.2. Service References reference.

Iii. How to use Asynchronous call for C # WebService

3.1. Based on Asynchronous delegation BeginInvoke/EndInvoke.

3.2. Event Mechanism Based on delegated events.

3.3 Async Task-Based asynchronous programming model.

Iv. How does C # WebService ensure secure client access?

4.1. What is security first? What problems do we need to solve?

Call security: Since WebService is exposed to the public network, how can we prevent illegal users from calling our service? Therefore, we need to solve the authorization problem.

Data Transmission Security: Because our data is transmitted over the network through ciphertext, it is easy to be stolen. Therefore, we need to solve the problem of data theft.

The above explanation is just a narrow understanding of Alibaba Cloud. Network Security also includes many aspects, such as session hijacking and session tampering.

4.2. I would like to share with you several common solutions.

1. Each WebService method must pass a fixed Token parameter. Different callers have different Token values. The server has a set of rule algorithms to generate a Token value, which is persistent in relational databases, files, and in-memory databases.

2. WebService adopts the asp.net authentication mechanism. Common authentication methods include FORM authentication, integrated WINDOWS authentication, Basic authentication, Digest authentication,

3. WebService uses SSL for encrypted transmission.

HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer) Secure transmission Protocol.(Strongly recommended)

4. Use the SoapHeader provided by WebService to authenticate user identity.(Strongly recommended)

I will share with you an elegant method for WebService authentication.

5. Use these solutions in combination. (Recommended for individuals: ③ + ④ combined use of the two solutions)(Strongly recommended)

Summary: We can use SoapHeader to ensure the authorized use of WebService. We can use SSL to ensure data encryption and prevent network listening!

V. How to Use C # WebService SoapHeader for authentication
WebService authentication 6. How does C # WebService perform unified entry call in an elegant way?

6.1. Use the Unity container method to obtain the WebService instance.

6.2. Obtain the WebService instance through Reflect reflection (recommended ).

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.