HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
WSDL document is just a simple XML document.
It contains a series of defined description of a web service.
WSDL document using these major elements to describe a web service is:
元素 | 定义 |
---|---|
<portType> | web service 执行的操作 |
<message> | web service 使用的消息 |
<types> | web service 使用的数据类型 |
<binding> | web service 使用的通信协议 |
One of the main structure of a WSDL document looks like this:
WSDL document may contain other elements, such as extension elements and a service element, which can hold a number of web services defined combination in a single WSDL document.
<portType> element is the most important WSDL element.
It can be described as a service, the operation can be performed, and the messages that web.
Can <portType> element can be compared in a traditional programming language function library (or a module, or a class).
<message> element defines the data elements of an operation.
Each message consists of one or more components. The parts can be compared to the parameters of a traditional programming language function calls.
<types> element defines the data types used by web service.
To maximize platform neutrality, WSDL using XML Schema syntax to define data types.
<binding> element to define each port message format and protocol details.
This is a simplified fraction of a WSDL document:
In this example, <portType> element to "glossaryTerms" is defined as the name of a port, the "getTerm" is defined as the name of an operation.
Operation "getTerm" has an input message called "getTermRequest", and the output message called "getTermResponse" of.
<message> element defines the components of each message, and the data associated with the type.
Compared to traditional programming, glossaryTerms is a function library, "getTerm" is "getTermRequest" a function with input parameters and return parameters of getTermResponse.