Asp.net Summary (II)

Source: Internet
Author: User

Continue with the previous summary

Starting with Web Service Basics

Let's take a look.


Web service concept

WebServer is an application that provides an API that can be called through the Web. Access web applications through programming

 

Web services are mainly used for online transactions and bank transfers.

 

Necessity of Web Services

Communication between Distributed Systems

Data Exchange in E-commerce

 

Classification is reflected in

Application Services and system services

But they must be registered before they can be used.

 

 

Access Diagram

 

 

The following describes how to access the Web service.

 

First

1 UDDI (integrated unified search description)

List retrieved by the UDDI service

2. send a request to the Web service to obtain the service request description.

 

Here, UDDI describes the directory of the web service. You can locate the center of the service.

The WSDL (Description Language) is used to describe Web Services and describe interfaces or algorithms.

Describe the services available

Methods that can be called by the outside world

 

Web service networking:

Soap is the main protocol for XML Web Service communication.

 

How to Use Web Services

First, let's take a look at the web usage diagram.

 

 

 

First, modify the webserver

(Webmethod) before external access

XML is the interface used to describe the service interface.

(Note that the returned value is also an XML document)

 

 

Call Web Services

Three methods are provided.

Post

Get http://blog.csdn.net/han_yankun2009/article/details/9155135

Soap

The first two methods have been described in detail in the previous article,

 

Here we will mainly explain how to call soap.

Soap is a lightweight protocol for distributed computers to exchange information.

It facilitates access to objects and servers in a platform-independent manner.

Using XML, you can call methods with specific values

 

Web Service Proxy

You can call a proxy remotely.

The proxy is called to add web references. Search for services in the Web and add them.

 

Finally, create a proxy object on the page and call the object method.

 

Summary above

 

The server on which the web service runs on integer,

Provides a set of interfaces,

Webmethod

Eliminates regional differences,

XML eliminates the differences in data formats

 

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.