3.8. SOAP HTTP protocol

Release time : 2023-12-19 23:00:02 UTC      

3.8.1. HTTP protocol

HTTP communicates over TCP/IP. The HTTP client connects to the HTTP server using TCP. After the connection is established, the client can send a HTTP request message to the server:

POST /item HTTP/1.1
Host: 189.123.255.239
Content-Type: text/plain
Content-Length: 200

The server then processes the request and sends a HTTP response to the client. This response contains a status code that indicates the status of the request:

200 OK
Content-Type: text/plain
Content-Length: 200

In the above example, the server returns a status code of 200. This is the standard success code for HTTP.

If the server cannot decode the request, it may return information like this:

400 Bad Request
Content-Length: 0

3.8.2. SOAP HTTP Binding

The SOAP method refers to a HTTP request / response that complies with the SOAP coding rules.

HTTP + XML = SOAP

The SOAP request may be a HTTP POST or HTTP GET request.

The HTTP POST request specifies at least two HTTP headers: Content-Type and Content-Length .

3.8.3. Content-Type

Request and response of SOAP Content-Type header can define the message’s MIME type, and for the request or response XML the character encoding of the body (optional).

Grammar

Content-Type: MIMEType; charset=character-encoding

Example

POST /item HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8

3.8.4. Content-Length

Request and response of SOAP Content-Length the header specifies the number of bytes for the request or response body.

Grammar

Content-Length: bytes

Example

POST /item HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 250

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.