WSDL bindings defines the message format and protocol details for a web service.
WSDL 綁定(bindings)定義了網(wǎng)頁(yè)服務(wù)的信息格式和協(xié)議細(xì)節(jié)
A request-response operation example:
一個(gè)要求—響應(yīng)操作例子
<message name="getTermRequest"> <portType name="glossaryTerms"> <binding type="glossaryTerms" name="b1"> |
The binding element has two attributes - the name attribute and the type attribute.
Binding元素有兩個(gè)屬性—name(名稱(chēng))屬性和type(類(lèi)型)屬性
The name attribute (you can use any name you want) defines the name of the binding, and the type attribute points to the port for the binding, in this case the "glossaryTerms" port.
Name屬性(你可以任意起名稱(chēng))定義了綁定的名稱(chēng),type屬性指向了用于綁定的端口,在這個(gè)例子里端口是"glossaryTerms"
The soap:binding element has two attributes - the style attribute and the transport attribute.
soap:binding元素有兩個(gè)屬性—style(種類(lèi))屬性和transport(運(yùn)送)屬性
The style attribute can be "rpc" or "document". In this case we use document. The transport attribute defines the SOAP protocol to use. In this case we use HTTP.
Style屬性可以是"rpc" 或"document".在這個(gè)例子里我們用"document"屬性。Transport屬性定義了使用的SOAP協(xié)議。這個(gè)例子里我們用HTTP
The operation element defines each operation that the port exposes.
Operation元素定義了每項(xiàng)揭示端口操作。
For each operation the corresponding SOAP action has to be defined. You must also specify how the input and output are encoded. In this case we use "literal".
對(duì)每項(xiàng)操作而言,相應(yīng)的SOAP行為都必須被定義。你也必須指定輸入和輸出是怎樣被編碼的。在這個(gè)例子里我們用"literal"
聯(lián)系客服