WSDL 绑定

来源:百度文库 编辑:神马文学网 时间:2024/04/30 15:17:47
WSDL bindings defines the message format and protocol details for a web service.
WSDL 绑定(bindings)定义了网页服务的信息格式和协议细节
Binding to SOAP
绑定到SOAP
A request-response operation example:
一个要求—响应操作例子











transport="http://schemas.xmlsoap.org/soap/http" />

soapAction="http://example.com/getTerm"/>








The binding element has two attributes - the name attribute and the type attribute.
Binding元素有两个属性—name(名称)属性和type(类型)属性
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属性(你可以任意起名称)定义了绑定的名称,type属性指向了用于绑定的端口,在这个例子里端口是"glossaryTerms"
The soap:binding element has two attributes - the style attribute and the transport attribute.
soap:binding元素有两个属性—style(种类)属性和transport(运送)属性
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".在这个例子里我们用"document"属性。Transport属性定义了使用的SOAP协议。这个例子里我们用HTTP
The operation element defines each operation that the port exposes.
Operation元素定义了每项揭示端口操作。
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".
对每项操作而言,相应的SOAP行为都必须被定义。你也必须指定输入和输出是怎样被编码的。在这个例子里我们用"literal"