Академический Документы
Профессиональный Документы
Культура Документы
Message
Port Type
Binding
Port
service
Port
Itspecifies an address for a binding, thus defining
a single communication endpoint.
Port must not specify more than one address.
Port must not specify any binding information
other than address info.
Service
It is used to aggregate a set of related ports.
Definitions
include both data type definitions and message definitions
Operations
Operations describe actions for the messages supported by a
Web service
There are four types of operations: One-way,
Request/response, Solicit response, Notification
Service bindings
Service bindings connect port types to a port
A collection of ports defines a service
This binding is commonly created using SOAP
XML document
Envelope – identify xml doc is a soap
message
Header – Optional – header information
Body – call and response information
Fault – error info occurred while message
processing
<?xml version="1.0"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPrice> <m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPriceResponse>
<m:Price>34.5</m:Price>
</m:GetStockPriceResponse>
</soap:Body>
</soap:Envelope>