6.3. WSDL document

发布时间 : 2025-10-25 13:34:25 UTC      

Page Views: 9 views

An WSDL document is just a simple XML document.

It contains a series of definitions that describe a web service.

6.3.1. WSDL document structure

WSDL documents use these main elements to describe a web service:

The main structure of an WSDL document is something like this:

WSDL document instance

<definitions><types>data type definitions........types><message>definition of the data being communicated....message><portType>set of operations......portType><binding>protocol and data format specification....binding>definitions>    

WSDL documents can contain other elements, such as extension element, and a service element, which combines several web services definitions into a single WSDL document.

6.3.2. WSDL port

Element is the most important WSDL element.

It describes a web service, actions that can be performed, and related messages.

You can put Element is compared to a function library (or a module, or a class) in a traditional programming language.

6.3.3. WSDL message

Element defines the data element of an operation.

Each message consists of one or more parts. These parts can be compared to the parameters of a function call in a traditional programming language.

6.3.4. WSDL types

Element defines the data type used by web service.

For maximum platform neutrality, WSDL uses XML Schema syntax to define data types.

6.3.5. WSDL Bindings

Element defines the message format and protocol details for each port.

6.3.6. WSDL instance

This is a simplified fragment of an WSDL document:

Example

<messagename="getTermRequest"><partname="term"type="xs:string"/>message><messagename="getTermResponse"><partname="value"type="xs:string"/>message><portTypename="glossaryTerms"><operationname="getTerm"><inputmessage="getTermRequest"/><outputmessage="getTermResponse"/>operation>portType>    

In this case, the element defines “glossaryTerms” as the name of a port and “getTerm” as the name of an operation.

The operation “getTerm” has an input message named “getTermRequest” and an output message named “getTermResponse”.

Element defines the part of each message and the associated data type.

Compared to traditional programming, glossaryTerms is a function library, while “getTerm” takes input parameters “getTermRequest” and return parameters. A function of getTermResponse .

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。

Powered by Django & PostgreSQL (with PostGIS)

element

Define

Actions performed by web service

< message >

Messages used by web service

< types >

Data types used by web service

< binding >

Communication protocols used by web service